johandenver
Registered User.
- Local time
- Today, 16:12
- Joined
- May 4, 2010
- Messages
- 27
Hello!
I use a value from a combobox (filled with a value list) as a criteria in a query. The values are basically names of american states.
The works fine but I'd like to make a "Misc" value in the list that catches all record that doesn't belong to any of the states in the list.
I thought of using some sort of IIF as a criteria in the query but I'm not good enough at this to know how to actually make that work.
Like this...
If Combobox=Misc then "exclude all records containing Alabama,Arkansas,Arizona,Colorado and New York
else
use the value of Combobox (the selected state) as the criteria
I hope I'm making any sort of sense here
I use a value from a combobox (filled with a value list) as a criteria in a query. The values are basically names of american states.
The works fine but I'd like to make a "Misc" value in the list that catches all record that doesn't belong to any of the states in the list.
I thought of using some sort of IIF as a criteria in the query but I'm not good enough at this to know how to actually make that work.
Like this...
If Combobox=Misc then "exclude all records containing Alabama,Arkansas,Arizona,Colorado and New York
else
use the value of Combobox (the selected state) as the criteria
I hope I'm making any sort of sense here