Here is my problem:
First off, I am new to Access and VB but have been programming assembly language and C for about 20 years now.
I would like to backup the complete database every 24 hours ( single user, single machine, single mdb file). I would like to use the compact and repair function to save the duplicate but it requires that the database be closed. Therefore my plan was to have the VB code in the current database shut down at midnite, open a backup "database" that is simply VB code ( no data ) that makes the duplicate of my original database and then closes and reopenes my original database.
I've looked at the Application.closecurrentdatabase function but it seems to terminate VB code in the current database as soon as it is executed so I can't open a new one right after.
Help
Kevin
First off, I am new to Access and VB but have been programming assembly language and C for about 20 years now.
I would like to backup the complete database every 24 hours ( single user, single machine, single mdb file). I would like to use the compact and repair function to save the duplicate but it requires that the database be closed. Therefore my plan was to have the VB code in the current database shut down at midnite, open a backup "database" that is simply VB code ( no data ) that makes the duplicate of my original database and then closes and reopenes my original database.
I've looked at the Application.closecurrentdatabase function but it seems to terminate VB code in the current database as soon as it is executed so I can't open a new one right after.
Help
Kevin