加上括号
If e.Form.Controls("RadioButton3").Checked = True ' 如果付款状态选择了"未付" If Filter >"" Then Filter = Filter & " And " End If Filter = Filter & "(提取状态 = False Or 提取状态 Is Null)"End If