MS Access 2010
I have a form with three fields that are of the Yes/No type (checkbox).
I'd like to create a command button that would filter the form by which checkbox is Yes.
At the same time I'd also like to allow the user to filter by another field (for Status).
The code I have for applying the filter of status on the form is:
Code:
Dim strStatus As String
Dim strFilter As String
Select Case Me.fraStatus.Value
Case 1
strStatus = "='Active'"
Case 2
strStatus = "='On Hold'"
Case 3
strStatus = "='Closed'"
End Select
strFilter = "[Status]" & strStatus
With Forms!MainForm
.Filter = strFilter
.FilterOn = True
End With
How do I add the criteria of a checkbox to this code?