Private Sub Command4_Click()
Dim strwh As String
strwh = "True"
If IsNull(Me.Text0.Value) = False Then
strwh = strwh & " and 客户姓名 like '*" & Me.Text0.Value & "*'"
End If
If IsNull(Me.Text2.Value) = False Then
strwh = strwh & " and 单位 like '*" & Me.Text2 & "*'"
End If
Me.表1.Form.Filter = strwh
Me.表1.Form.FilterOn = True
End Sub