B
brettc
Guest
Hi,
I have a current open database located in C:/SAFC/SAFC.mdb. I have a backup directory in a user defined location. Inside the backup directory are versions of the database made each day - SAFC-20-10-04.mdb.
Now i also have a form with a listbox that lists the backup versions from the backup folder. When the user double clicks on a backup version in the list it copies the selected backup version back to the C:/SAFC folder.
The problem i have is with either overwriting the currently open SAFC.mdb with the selected backup. If i close down the SAFC.mdb first before i copy the backup version how would it then run the next line of code as it is closed?
There must be an easy way of swapping two files if one is currently open?
Cheers!
I have a current open database located in C:/SAFC/SAFC.mdb. I have a backup directory in a user defined location. Inside the backup directory are versions of the database made each day - SAFC-20-10-04.mdb.
Now i also have a form with a listbox that lists the backup versions from the backup folder. When the user double clicks on a backup version in the list it copies the selected backup version back to the C:/SAFC folder.
The problem i have is with either overwriting the currently open SAFC.mdb with the selected backup. If i close down the SAFC.mdb first before i copy the backup version how would it then run the next line of code as it is closed?
There must be an easy way of swapping two files if one is currently open?
Cheers!