GregginOttawa wrote:
I've been Googling and reading for 5 days now trying to figure out how
to write a query that selects records with dates in the current week
(Sun to Sat). You'd think it would be remarkably simple (maybe it is),
but I can't find a simple answer.
If anyone could provide a relatively simple method, I would very much
appreciate it.
Thanks -
G
In a prior thread, Wayne Morgan noted that:
Date() - Weekday(Date()) + 1
produces the date of Sunday on or before Date().
A version that is less cozy with the implementation of dates is:
DateAdd("d", 1 - Weekday(Date()), Date())
The following Saturday is:
DateAdd("d", 7 - Weekday(Date()), Date())
This will work for finding the current week for dates in the past and
future as well.
James A. Fortune
CD********@FortuneJames.com