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

Find all records within current week? 3

Status
Not open for further replies.

jazminecat

Programmer
Jun 2, 2003
289
0
0
US
Hi all -

I have a table with dates in mm/dd/yy format. I need to write a query to find all records with a date during the current week. I can find all records for today using
Date() or Now()
but can't find a similar function to find all records for the current week. I need to be able to run this on any day of the week.

thanks!

 
Assuming a Sunday-Saturday week put this in the criteria of the date field:

>=Date()-Weekday(Date())+1 And <=Date()+(7-Weekday(Date()))

That should do it. Hope that helps.

Kevin
 
works like a charm! thanks again godawgs. star for you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top