criteria help needed

Jman883

Registered User.
Local time
Yesterday, 19:23
Joined
Jan 3, 2007
Messages
81
I have a querie made to run a report. Criteria in the querie is
[Enter shift number 1,2, or 3 to view shift]
This filters for 1,2,or 3. what would I need to add to run all 3?
I would like to run all 1,2,and 3 or just 1 or 2 or 3.

Thanks
 
Assuming you have a Shift field storing the numbers 1, 2 or 3 for each record, you can use the InStr() function in the SQL View of the query like this:-

SELECT *
FROM [TableName]
WHERE InStr([Enter shift number 1, 2, or 3 to view shift], [Shift]);
.
 
This also would work:

Criteria--> like [Input Shift 1,2,3 Blank=All]&"*"
 

Users who are viewing this thread

Back
Top Bottom