G gcorsey New member Local time Today, 17:23 Joined Jan 7, 2013 Messages 4 Jan 8, 2013 #1 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:
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:
J jzwp22 Access Hobbyist Local time Today, 18:23 Joined Mar 15, 2008 Messages 2,629 Jan 8, 2013 #2 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())
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())
John Big Booty AWF VIP Local time Tomorrow, 08:23 Joined Aug 29, 2005 Messages 8,262 Jan 8, 2013 #3 Have a look at the DateAdd() function.