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!

Query Based on Last Friday

Status
Not open for further replies.

OOzy

Programmer
Jul 24, 2000
135
0
0
SA
Guys/Gals,

I need to find all records that were entered in the database since last Friday.
 
Build a query with the criteria field for the day/date you are looking for greater than the date for "last friday
 
Expanding on my reply, is this something that has to run each week, looking for items since "last friday"?
 
SELECT *
FROM yourTable
WHERE [date field] > (Date() - Weekday(Date(), 6))

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Yes, I have a database that has action items for my team. Each week I print this action item list showing closed and open actions. But, I don't like the closed items to show every week. I would like the closed items to show for only on week.

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top