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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query show all appointments for current week 1

Status
Not open for further replies.

luke242

Technical User
May 24, 2001
11
US
I needed to show all appointments scheduled for the current week (Monday through Sunday). I used this criterea and was wondering if there was an easier way:

>=(Now()-Weekday((Now()),2)+1) And <=(Now()-Weekday(Now(),2)+7)

Just curious if I missed something obvious.

~Luke
 
You could format your date field like:
TheWeek:Format([DateField]-1, "yyyyww")
and set the criteria to:
Format(Date(), "yyyyww")

I don't know if this would be more or less efficient.


Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top