nissan240zx
Programmer
Hello All,
A problem with Access.
I have a table with some records. This table gets updated every day (via a via batch job).
Now two of the fields in the table (table name - LODDODD) are as follows:
Field name | Type
printed | Yes/No
LetterDate | Date/Time
Now what I want do is..I want to create a query that will move (Insert to a new table TEMP_REC and Delete from LODDODD) records from the table when the LetterDate is older than 3 days and printed is marked as Yes.
Basically the query should check for any records 3 days older than current date.
For example if I have records with dates 7/16,7/17,7/18,7/19,7/20, the query should not delete 7/18,7/19,7/20 records but should remove records from 7/16,7/17 to TEMP_REC and Delete from LODDODD.
Can this be done. Please help.
Nissan 240 ZX...best Nissan Ever
A problem with Access.
I have a table with some records. This table gets updated every day (via a via batch job).
Now two of the fields in the table (table name - LODDODD) are as follows:
Field name | Type
printed | Yes/No
LetterDate | Date/Time
Now what I want do is..I want to create a query that will move (Insert to a new table TEMP_REC and Delete from LODDODD) records from the table when the LetterDate is older than 3 days and printed is marked as Yes.
Basically the query should check for any records 3 days older than current date.
For example if I have records with dates 7/16,7/17,7/18,7/19,7/20, the query should not delete 7/18,7/19,7/20 records but should remove records from 7/16,7/17 to TEMP_REC and Delete from LODDODD.
Can this be done. Please help.
Nissan 240 ZX...best Nissan Ever