I have a DB full of customer complaints and I am trying to use a button to filter down to a certain subset of entries in a form. I want the button to filter to "in progress" complaints, along with entries from two specific categories. My code is below:
Using the above code does not apply the 'status' filter. Any suggestions on how to retool this?Code:Private Sub btnFilter_Click() Me.Filter = "[Status]= 'In Progress'" Me.Filter = [Category]= 'Billing' or [Category] = 'Cleanliness'" DoCmd.SetOrderBy "[ComplaintDate] ASC" Me.FilterOn = True End Sub