KeepingDatabasesInSync2.mdb (intermediate)

Please consider donating $1 per sample downloaded, find out why here
Download
KeepingDatabasesInSync2.zip
Access 97 & 2000 (107 KB)

This sample is similar to the "KeepingDatabasesInSync.mdb" sample in that it still uses MSysObjects to check for a newer verison on the network. However, rather than using a DOS batch file to copy the Master Copy over the Local Copy, it uses the FileCopy command.

Unfortunately, the database cannot be open if it going to be copied over. Thus we will programmatically create a 'CopyMaster' database, copy several objects to it, set certain properties, launch the 'CopyMaster' database, and the close the Local Copy. Once the copy is complete, the CopyMaster will close itself then re-launch the application.

 

Feedback

 

Need Winzip?

Return to Main Page