M
Michael
I have a combo box which I am trying to use as a records filter. It
works for finding records that match the combo box but my problem is
how to remove the filter and show all records once it has already been
filtered. Here is what I have so far:
Private Sub Form_AfterUpdate()
If Not IsNull(Me![FilterByTicketStatus]) Then
Me.Filter = "[TicketStatus]='" & Me![FilterByTicketStatus] &
"'"
Me.FilterOn = True
Else
Me.FilterOn = False
End If
End Sub
When the "FilterByTicketStatus" is cleared, it shows no records and
the filter button still shows active.
How do I fix this so it shows all the records and removes the filter
when the combo box is cleared?
works for finding records that match the combo box but my problem is
how to remove the filter and show all records once it has already been
filtered. Here is what I have so far:
Private Sub Form_AfterUpdate()
If Not IsNull(Me![FilterByTicketStatus]) Then
Me.Filter = "[TicketStatus]='" & Me![FilterByTicketStatus] &
"'"
Me.FilterOn = True
Else
Me.FilterOn = False
End If
End Sub
When the "FilterByTicketStatus" is cleared, it shows no records and
the filter button still shows active.
How do I fix this so it shows all the records and removes the filter
when the combo box is cleared?