streamsleek
New member
- Local time
- Today, 06:23
- Joined
- Feb 26, 2013
- Messages
- 3
I have a situation where a user would like to pull two department types in a query. I previously had the criteria defined by a form field. So if "warehouse-bulk" is selected on the form, it will pull the records for "warehouse-bulk, and 'warehouse-retail". I have attempted this with the below statement, but it doesn't like it.
Old
[forms]![dateselect]![dept]
New
IIf([Forms]![dateselect]![dept]="Warehouse-Bulk","Warehouse-Bulk" OR "Warehouse-Retail",[forms]![dateselect]![dept])
Old
[forms]![dateselect]![dept]
New
IIf([Forms]![dateselect]![dept]="Warehouse-Bulk","Warehouse-Bulk" OR "Warehouse-Retail",[forms]![dateselect]![dept])