Hi everyone
So I have a datasheet in split form view. One of the columns is called "WSIB Employer Declaration Complete?" and is has values yes or no. I'd like to add a combo box where the user can select either yes, no or all and based on their selection retrieves either, the records where WSIB Employer Declaration = yes, no or all the records. I tried doing this in the combo box's on_click property:
As always if anyone has any guidance. That is much appreciated!
So I have a datasheet in split form view. One of the columns is called "WSIB Employer Declaration Complete?" and is has values yes or no. I'd like to add a combo box where the user can select either yes, no or all and based on their selection retrieves either, the records where WSIB Employer Declaration = yes, no or all the records. I tried doing this in the combo box's on_click property:
Code:
Private Sub ComboWSIB_Click()
If (ComboWSIB.value) = "all" Then
Me.FilterOn = False
Else
Me.Filter = "[WSIB Employer Declaration Complete?] = ComboWSIB"
Me.FilterOn = True
End If
End Sub
As always if anyone has any guidance. That is much appreciated!
Last edited: