P
PJFry
I am developing a form where the user can select a check box to filter a
form.
I can sucessfully filter using one criteria:
This sets the filter value:
Private Sub chkPending_BeforeUpdate(Cancel As Integer)
Select Case Me.chkPending
Case -1
chkPending1 = "Pending"
Case 0
chkPending1 = ""
End Select
End Sub
And this filters:
Private Sub chkPending_AfterUpdate()
Me.Filter = "txtStatus = '" & chkPending1 & "'"
Me.FilterOn = True
End Sub
There will be eight check boxes on this form. How do I string those values
together to filter. In english, it would read:
Filter txtStatus on Pending, Open and closed.
Thoughts?
PJ
form.
I can sucessfully filter using one criteria:
This sets the filter value:
Private Sub chkPending_BeforeUpdate(Cancel As Integer)
Select Case Me.chkPending
Case -1
chkPending1 = "Pending"
Case 0
chkPending1 = ""
End Select
End Sub
And this filters:
Private Sub chkPending_AfterUpdate()
Me.Filter = "txtStatus = '" & chkPending1 & "'"
Me.FilterOn = True
End Sub
There will be eight check boxes on this form. How do I string those values
together to filter. In english, it would read:
Filter txtStatus on Pending, Open and closed.
Thoughts?
PJ