For archiving purposes,at the end of each year, a procedure is running that selects all records in the tables tblOrderdetails and tblOrders, of which the orderdate dates from two years ago: e.g.at the end of 2009 this will be all records with an orderdate = 2007.
This records are put respectively in two other tables that are given the names : tblOrderdetails07 and tblOrders07. Once this tables are made and filled with the records, the same records in the tables tblOrderdetails and tblOrders are deleted.
Although i"m working with linked tables, the procedure put this new tables are placed in the front end and not in the back-end.
I have the VBA code to realize what is explained hereabove, but i don't know how to adapt the code in such a way, that the new tables are constructed and filled in another database with the name Archive.accdb that exists in the same folder as the front-end.
Futhermore I would like to know how i can retrieve information out if this tables from the frontend of my database.
This records are put respectively in two other tables that are given the names : tblOrderdetails07 and tblOrders07. Once this tables are made and filled with the records, the same records in the tables tblOrderdetails and tblOrders are deleted.
Although i"m working with linked tables, the procedure put this new tables are placed in the front end and not in the back-end.
I have the VBA code to realize what is explained hereabove, but i don't know how to adapt the code in such a way, that the new tables are constructed and filled in another database with the name Archive.accdb that exists in the same folder as the front-end.
Futhermore I would like to know how i can retrieve information out if this tables from the frontend of my database.