G gcorsey New member Local time Yesterday, 18:01 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 Yesterday, 19:01 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 Today, 11:01 Joined Aug 29, 2005 Messages 8,243 Jan 8, 2013 #3 Have a look at the DateAdd() function.