Question : Multiple Criteria in Query

I need to have a query that filters multiple inputs from a user on a form. There are three "combo boxes" on the form but they all may not be filled. How can I format the criteria for three different fields to filter the data if an input is chosen, but not to filter if it is left blank??

What I have right now is:

IIf(IsNull([Forms]![frmCatSrch]![Combo11]),"",[Forms]![frmCatSrch]![Combo11])

but the query is still empty when no input is selected form "combo 11". Is there a way to omit a criteria if the combo box is nul??

Thanks

Answer : Multiple Criteria in Query

Try this approach:
1:
2:
3:
4:
5:
select * 
from yourtable
where 	(yourcolumn1 = [Forms]![frmCatSrch]![Combo11] or [Forms]![frmCatSrch]![Combo11] is null) and
	(yourcolumn2 = [Forms]![frmCatSrch]![Combo12] or [Forms]![frmCatSrch]![Combo12] is null) and
	... and so on ....
Random Solutions  
 
programming4us programming4us