Access: Getting the beginning date of the current week

B

Barry

Here's what I want to do:
Get all the records where a date field is within the current week.
Example: Say the current date is 12/6/2007. I want the records where the
date field falls between 12/2/2007 and 12/8/2007, inclusive (Sun. - Sat.).
I don't want to have to hard code any dates. In a SQL query, I should be
able to grab just the records whose date is between Sun and Sat of the
current week (which I should be able to get from Now() )....

And I should be able to do this all within an SQL query... possible?
Thanks in advance for any help...
Barry
 
M

Marshall Barton

Barry said:
Here's what I want to do:
Get all the records where a date field is within the current week.
Example: Say the current date is 12/6/2007. I want the records where the
date field falls between 12/2/2007 and 12/8/2007, inclusive (Sun. - Sat.).
I don't want to have to hard code any dates. In a SQL query, I should be
able to grab just the records whose date is between Sun and Sat of the
current week (which I should be able to get from Now() )....


DateAdd("d", 1 - WeekDay(Date()), Date())
 

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

Similar Threads


Top