All records within the last 30 days

G

Guest

Hello.
I am using Access 2000 and I was wondering how to write a query on a date
field to find all records within the last 30 days.

I tried Date()-30 and it didn't work.
Any suggestions?

Your help is greatly appreciated.

Iram/mcp
 
J

John Spencer

Field: YourDateField
Criteria: Between DateAdd("d",-30,Date()) and Date()

Even simpler if you don't have dates in the future

Criteria: >= DateAdd("d',-30,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

Update Query 10
Query all records within next 40 days 1
The not "Max" records 1
>=[BeginDate] And <=[End Date] 1
Countif 3
Query 40 days and more: Date() 2
IIf function, & Date(), & AND, & > & < 6
Over 30 Days 6

Top