alright, i have about 3 filters that i want to include on a form that is built off of an initial query. but i want to be able to use any combination of the filters. my idea was to write a query/filter using IIf statements that rely on check boxes in the criteria. I'm trying to get just one to work currently and am struggling. here's my code in the criteria...
IIf([Forms]![frm_qry_local_deliveries]![finished]=True,([qry_local_deliveries].[Delivery_Location])="GFS Green Oak" Or ([qry_local_deliveries].[Delivery_Location])="GFS Brighton",Null)
[finished] is my check box. Basically, if the box is checked, I want to only show delivery locations "GFS Green Oak" or "GFS Brighton", else I want all records to show.
Once I get this to work for one check box, I imagine I could add the other filters/queries I have as And Criteria in my master query and it would only do the filter if the check box is checked. I'm still new and learning, Thanks everyone!!!
IIf([Forms]![frm_qry_local_deliveries]![finished]=True,([qry_local_deliveries].[Delivery_Location])="GFS Green Oak" Or ([qry_local_deliveries].[Delivery_Location])="GFS Brighton",Null)
[finished] is my check box. Basically, if the box is checked, I want to only show delivery locations "GFS Green Oak" or "GFS Brighton", else I want all records to show.
Once I get this to work for one check box, I imagine I could add the other filters/queries I have as And Criteria in my master query and it would only do the filter if the check box is checked. I'm still new and learning, Thanks everyone!!!