L
lecoughlin
Good afternoon,
I have a button on a form, that when clicked I would like to apply 2
filters to the records being shown. I thought that this code would
work:
Private Sub filteroption_DblClick(Cancel As Integer)
DoCmd.ApplyFilter , "pilot_id like '*_0'"
DoCmd.ApplyFilter , "GrantYear = 2003"
End Sub
But it seems to only apply whichever filter is listed second.
How would I apply both?
Thanks in advance.
I have a button on a form, that when clicked I would like to apply 2
filters to the records being shown. I thought that this code would
work:
Private Sub filteroption_DblClick(Cancel As Integer)
DoCmd.ApplyFilter , "pilot_id like '*_0'"
DoCmd.ApplyFilter , "GrantYear = 2003"
End Sub
But it seems to only apply whichever filter is listed second.
How would I apply both?
Thanks in advance.