Delete queries deleting the last 30 days

gcorsey

New member
Local time
Today, 17:23
Joined
Jan 7, 2013
Messages
4
I have created an Append query and a delete query. I need a date function for the delete query to delete the last 30 days. Can anyone help?:banghead:
 
Assuming that you have a date field in your table, you would just add criteria to the DELETE query as follows

WHERE yourdatefield between date() and dateadd("d",-30,date())
 

Users who are viewing this thread

Back
Top Bottom