BroncoMarc
Registered User.
- Local time
- Today, 19:56
- Joined
- Apr 4, 2002
- Messages
- 43
I've got a combo box in a form that uses a query to display a table in a sub form. One of the option in the combo box is all. I'm trying to write an if statement in the criteria for the query so that it either show what is a match for what is selected in the combo box, or it shows all if all is selected.
This is basically what I'm doing:
IIf([Forms]![Product Catalog]![cboSegment]<>"all",[Forms]![Product Catalog]![cboSegment],"*")
it works for everything I select except or 'all'. I've tried *, like * and a few other things. If I select 'all' the query returns nothing.
What do I need to put in there??
Thanks,
- Marc
This is basically what I'm doing:
IIf([Forms]![Product Catalog]![cboSegment]<>"all",[Forms]![Product Catalog]![cboSegment],"*")
it works for everything I select except or 'all'. I've tried *, like * and a few other things. If I select 'all' the query returns nothing.
What do I need to put in there??
Thanks,
- Marc