Deleting data automatically

Arcadia

Registered User.
Local time
Yesterday, 20:04
Joined
Jan 25, 2013
Messages
66
I want to make a query that can delete flights that are older than 60 days automatically but i don't know what value i have the use in the criteria box :(

I really hope someone can help me out with this :)
 
Give this a try in the criteria of your flight date field in your delete type query:

<DateAdd("d",-60,Date)

This function says return or delete only records where your flight date is less than the current date minus 60 days. Those are the records that will be deleted.
 
No it does not work :(

It says that it is a wrong code.
 
Sorry, I left something out. Please try this:

< DateAdd("d",-60,Date())
 

Users who are viewing this thread

Back
Top Bottom