Hi,
Use the SQL Syntax of:
DELETE Orders.*, Orders.OrderDate
FROM Orders
WHERE (((Orders.OrderDate)<Date()-5));
I hope this helps! If you have additional questions on this topic, please
respond back to this posting.
Regards,
Eric Butts
Microsoft Access Support
(e-mail address removed)
"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
<
http://www.microsoft.com/security/security_bulletins/ms03-026.asp> and/or
to visit Windows Update at <
http://windowsupdate.microsoft.com/> to install
the patch. Running the SCAN program from the Windows Update site will help
to insure you are current with all security patches, not just MS03-026."
This posting is provided "AS IS" with no warranties, and confers no rights
--------------------
| From: "marfado" <
[email protected]>
| Subject: eliminate date()
| Date: Sun, 11 Apr 2004 22:24:02 +0100
| Lines: 5
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 5.50.4927.1200
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200
| Message-ID: <
[email protected]>
| Newsgroups: microsoft.public.access.queries
| NNTP-Posting-Host: 81.193.47.254
| Path:
cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08
..phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.access.queries:197037
| X-Tomcat-NG: microsoft.public.access.queries
|
| hi
| i want to eliminate records in a table that have date() - 5 days. How can
i
| do it.
|
|
|