Guys
I have a database table with approx. 20 fields of which I want users to be able to choose from 7 of them. I've created lookup tables to enable dropdowns in a form and then a command button to open a query where the search criteria is populated from the chosen options on the form. However, I want the users to be able to choose 'All' in the dropdown and the query to then basically ignore that criteria. I've tried the following in one fo the fields and it doesn't work. I've spent hours trying different combinations all to no avail.
IIf([Forms]![Interrogation]![Combo0]="All",([Denials Database].[Category]) Like "*",[Forms]![Interrogation]![Combo0])
Any thoughts?
I have a database table with approx. 20 fields of which I want users to be able to choose from 7 of them. I've created lookup tables to enable dropdowns in a form and then a command button to open a query where the search criteria is populated from the chosen options on the form. However, I want the users to be able to choose 'All' in the dropdown and the query to then basically ignore that criteria. I've tried the following in one fo the fields and it doesn't work. I've spent hours trying different combinations all to no avail.
IIf([Forms]![Interrogation]![Combo0]="All",([Denials Database].[Category]) Like "*",[Forms]![Interrogation]![Combo0])
Any thoughts?