Days of the Week Query

J

John Lane

Is there an easy way to get all the dates for all the Mondays, Tuesdays, etc.
for a given year? Thanks.
 
J

John Lane

I must be incredibily stupid. What I really meant was how do I get which week
of the year a day is in for a given year?
 
S

Steve.C.Hutchinson

I must be incredibily stupid. What I really meant was how do I get which week
of the year a day is in for a given year?
- Show quoted text -

John,
Try this on the Field line in your query:
WkNumber: DatePart("ww",[YourDate])
I recommend the books Microsoft Office Access 2007 Bible and Access
2007 VBA Bible...
 
J

John W. Vinson

I must be incredibily stupid. What I really meant was how do I get which week
of the year a day is in for a given year?

DatePart("ww", [datefield])

Check the VBA help for Datepart; there are various ways of determining which
is the first week of the year (the week containing January 1 even if that's
Saturday at the end of the week, the week containing the first Tuesday, etc.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top