M marfado Apr 11, 2004 #1 i want to eliminate records on a date/time field that are 5 days older than current date. I apreciate some help. thanks
i want to eliminate records on a date/time field that are 5 days older than current date. I apreciate some help. thanks
K Ken Snell Apr 11, 2004 #2 Run a delete query similar to the following: DELETE * FROM TableName WHERE DateDiff("d", [DateFieldName], Date()) >=5;
Run a delete query similar to the following: DELETE * FROM TableName WHERE DateDiff("d", [DateFieldName], Date()) >=5;
A Aaron Yang Apr 12, 2004 #3 Click Mouse right button,POP menu,select" Exclude Filter",input below expression: #date()-1# Click to expand... then enter.....OK? Aaron _~@ Yang _`\<,_ ¡¡ (*)/&(*) ~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
Click Mouse right button,POP menu,select" Exclude Filter",input below expression: #date()-1# Click to expand... then enter.....OK? Aaron _~@ Yang _`\<,_ ¡¡ (*)/&(*) ~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~