mimottershaw
Registered User.
- Local time
- Today, 16:51
- Joined
- Feb 2, 2007
- Messages
- 40
Hi All,
I have a query set up to use the input from a combo box in a form as my criteria. This works fine if I enter data in it, but I also want the query to include ALL records if the combo box is left blank. Basically I have multiple filtering criteria, and I want the Query to ignore all the combo boxes that I don't enter filter data into.
I'm sure this is a common requirement, but I don't seem to be able to find the right function or syntax to make it work. I've tried the IIF function in various forms with no success. Can anybody help please.
Many thanks,
Mark.
I have a query set up to use the input from a combo box in a form as my criteria. This works fine if I enter data in it, but I also want the query to include ALL records if the combo box is left blank. Basically I have multiple filtering criteria, and I want the Query to ignore all the combo boxes that I don't enter filter data into.
I'm sure this is a common requirement, but I don't seem to be able to find the right function or syntax to make it work. I've tried the IIF function in various forms with no success. Can anybody help please.
Many thanks,
Mark.