Function gString()
Dim ctl As Control
For Each ctl In Me.Controls
If TypeOf ctl Is ComboBox Then
If Not IsNull(ctl) Then
gString = gString & ctl.Name & "='" & ctl & "' And "
End If
End If
Next
If Len(gString) <> 0 Then
gString = Left(gString, Len(gString) - 5)
Me.花名册_整体子窗体1.Form.Filter = gString
Me.花名册_整体子窗体1.Form.FilterOn = True
Me.花名册_整体子窗体2.Form.Filter = gString
Me.花名册_整体子窗体2.Form.FilterOn = True
End If
End Function
Private Sub Command12_Click()
Dim ctl As Control
For Each ctl In Me.Controls
If TypeOf ctl Is ComboBox Then
ctl = Null
End If
Next
Me.花名册_整体子窗体1.Form.FilterOn = False
Me.花名册_整体子窗体2.Form.FilterOn = False
End Sub