With e.Form.Controls("ComboBox1")
If .Value IsNot Nothing Then
If Filter > "" Then
Filter = Filter & " And "
End If
Filter = Filter & "健康状况 = '" & .Value & "'"
Filter = "健康状况 Is null"
End If
End With
With e.Form.Controls("ComboBox1")
If .Value IsNot Nothing Then
If Filter > "" Then
Filter = Filter & " And "
End If
Filter = Filter & "与户主关系 = '" & .Value & "'"
Filter = "与户主关系 Is null"
End If
End With
With e.Form.Controls("ComboBox1")
If .Value IsNot Nothing Then
If Filter > "" Then
Filter = Filter & " And "
End If
Filter = Filter & "民族 = '" & .Value & "'"
Filter = "民族 Is null"
End If
End With
如我想实现选择其中任意一个条件就可以去筛选,怎么改?
选择“健康状况为空”,去筛选“健康状况"为空的数据,
选择“与户主关系为空”,去筛选“与户主关系"为空的数据,
选择“民族为空”,去筛选“民族"为空的数据,
[此贴子已经被作者于2024/3/12 9:56:01编辑过]