T
Tony Girgenti
Hello.
I want to remove old records from a database to an archive. The archived database will have three tables Customers table will simply be a straight copy, PendingOrders table will be pulled based on a date from a form, Status table is linked to PendingOrders by JOBNO.
I thought about just creating a new database with the same name as the original+date&time with empty tables, doing an append query to the archived version and a delete query to the original database with form date as the criteria to archive and delete.
How do i do that with all the three tables ?
The Status table does not have a date but is linked to the PendingOrders table. How do i set up the append/delete query to use the joined tables ?
How do i create the new database with empty tables ?
How do i copy the Customer tabel to the new database ?
Or should i do this whole thing a different way ?
Thanks,
Tony
I want to remove old records from a database to an archive. The archived database will have three tables Customers table will simply be a straight copy, PendingOrders table will be pulled based on a date from a form, Status table is linked to PendingOrders by JOBNO.
I thought about just creating a new database with the same name as the original+date&time with empty tables, doing an append query to the archived version and a delete query to the original database with form date as the criteria to archive and delete.
How do i do that with all the three tables ?
The Status table does not have a date but is linked to the PendingOrders table. How do i set up the append/delete query to use the joined tables ?
How do i create the new database with empty tables ?
How do i copy the Customer tabel to the new database ?
Or should i do this whole thing a different way ?
Thanks,
Tony