I have a form with a few different boxes for user input. One of which is a combobox. There is a button on a form that triggers a query. The information that is queried is what the user has entered into the control boxes on the form. The user can enter information into as many or as little fields as they wish, with at least one field being required. I have coded the criteria field on the query with (i.e. =[FORMS]![MainMenu]![CarLine]). So far it works fine. I have also coded other criteria fields in the query the same way (i.e. =[FORMS]![MainMenu]![PartNum]). If carline is filled in and partnum is left blank, then my query returns no data.
I think I need an iif statement that returns a wild card(*) if left blank.
can someone assist?