Private Sub 筛选()
Dim str As String
str = True
If Nz(Me.姓.Value, "") <> "" Then
str = str & " and 姓名 like '" & Me.姓.Value & "*'"
End If
If Nz(Me.人员ID.Value, 0) <> 0 Then
str = str & " and 人员ID=" & Me.人员ID.Value
End If
Me.人员管理总表子窗体.Form.Filter = str
Me.人员管理总表子窗体.Form.FilterOn = True
End Sub