Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple criteria query 1

Status
Not open for further replies.

AnalystNovie

Technical User
Jun 9, 2005
1
US
I have a field for TIME, is there a way I could search for more than one TIME in 1 query?

My report has to show this . . .
name date onduty lunchout lunchin offduty

so I give the query the week I am looking for but I need to pull out the times the employee clocked in/out from a TIME field.

something like on duty between 7:00 and 7:30, and lunch out between 11:30 and 12, etc etc, and the the query result would return the actual times the employee clocked.
 
Code:
Select EmplID, DTField
From tbl
Where TimeValue(DTField) BETWEEN #7:00 AM# AND #7:30 AM#
   OR TimeValue(DTField) BETWEEN #11:30 AM# AND #12:00 PM#
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top