I have an Access application that is now split into front end and back end databases. I would like the user to periodically archive the data from the back end tables to improve the database performance. What I have in mind is the following:
- Create a new empty database file
- Create empty copies of selected tables from original backend database
- Insert data from original backend database to the new database tables with certain criteria, for example date range
- Delete from original backend database tables the archived data
Can I achieve this programmatically so the user only needs to perform simple actions like clicking a button and input the data range?
I am using Access 2003 for my application.
Thanks in advance for the help.
SELECT * INTO Table1 IN 'D:\SomeFolder\BackUp.mdb' FROM Table1;
It creates the destination table and loads the data into it as one operation. So, if that is satisfactory, it accomplishes your steps 2 and 3. – HansUp