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

Query for the last ** days

Status
Not open for further replies.

kp1279

Programmer
Jan 21, 2005
43
GB
I want to set up a simple query, which will bring back the results from a table for the last amount of days.

i.e. the records inputted in the last 5 days etc.

I have tried in the query criteria:

day()-5

This just brings back though any date with a 5 in???

Any help apreciated.
 
Code:
Between Date() And Date()-5
hope this helps

Zameer Abdulla
Jack of Visual Basic Programming, Master in Dining & Sleeping
Visit Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top