shakeelmscw
Registered User.
- Local time
- Tomorrow, 03:16
- Joined
- Nov 11, 2011
- Messages
- 23
I need to save the current database to a new location.
When we click on backup button on a form. this should display save as dialog box, where we can choose location to save the backup copy.
Can some one give me codes to do this?
Presently i am using these codes to take backup
Dim fs, f
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(CurrentDb.Name)
f.Copy Replace(CurrentDb.Name, ".mdb", ".bak"), True
these codes saves the active file to the same folder but in bak extension. i need the option to show the save as dialog box where user can choose location for backup.
When we click on backup button on a form. this should display save as dialog box, where we can choose location to save the backup copy.
Can some one give me codes to do this?
Presently i am using these codes to take backup
Dim fs, f
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(CurrentDb.Name)
f.Copy Replace(CurrentDb.Name, ".mdb", ".bak"), True
these codes saves the active file to the same folder but in bak extension. i need the option to show the save as dialog box where user can choose location for backup.