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!

Show this weeks records 1

Status
Not open for further replies.

Apollo13a

Technical User
Apr 27, 2003
277
US
My query contains dates for entered labor hours. How do I show just the records for the current week? My payroll period runs Mon to Sun.
Thanks, Jim
 
the records for the current week
... WHERE Format([date field],'ww')=Format(Date(),'ww') ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Another solution is:

Code:
 WHERE (((DatePart("ww",[LaborDate]))=Format(Now()-1,"ww")))

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top