Dim Filter As String With e.Form.Controls("CheckBox1") If .checked Then Filter = "状态 = '合格'" End If End With With e.Form.Controls("CheckBox2") If .checked Then If Filter >"" Then Filter = Filter & " And " End If Filter = Filter & "状态 = '待审'" End If End With With e.Form.Controls("CheckBox3") If .checked Then If Filter >"" Then Filter = Filter & " And " End If Filter = Filter & "状态 = '己取消'" End If End With Tables("信息表").Filter = Filter