Backup Database on close

Zorkmid

Registered User.
Local time
Today, 02:55
Joined
Mar 3, 2009
Messages
188
Hi all is there a way that I can configure myfront end to make a backup of the backend everytime it closes?
 
Is there a particular reason? Is this backend not on a network drive where it is backed up by IT nightly?
 
It is on a network drive, but our IT department is not the worlds most reliable and we've had trouble with data loss before.
 
You can, you could make a bit of code that "on close" of your main form makes a copy of your database into any folder the current user has access to...

You can use the VBA native FileCopy or use a much more complicated FSO (FileSystemObject) to do it.
 
1. Trying to copy the database when a database has it open can be touchy.

2. How do you propose to copy the database backend if all of the users need to be out of it first? How will the backend know that nobody is left in it?

You'd be better off using Windows Scheduler to make a copy at night when nobody is around. That is my opinion.
 
2. Look for the related LDB file to exist or not.
 

Users who are viewing this thread

Back
Top Bottom