SelfSaveAddIn Version 1.4
(Updated on 04-Jan-2011)
Author: A.D. Tejpal
This utility enables creation of periodic backup copies of the running database (as well as all its back ends if any - if so desired). Interval of auto alerts (in minutes) can be set by the user as desired. At auto alert stage, the backup form pops up, with a message box asking the user to close all activity, ensure there is no other user, get out of VBA window and click the backup button. (The message box comes up even when the user is in VBA window).
If the user closes the backup form without actually performing the backup, auto alert period gets reset to one minute, causing persistent reminders every minute. Once the backup is done and the form closed, auto alert interval reverts back to normal value originally set by the user.
If desired, the backup copies can be compacted before backup, apart from getting stamped with current Date or DateTime. If the user has selected DoCompact check box, the AddIn creates a compacted back up file with "_CpBk_" embedded in its suffix. If, for any reason, the back process is not successful, normal copy gets done with "_Bk_" embedded in its suffix. By looking at the name of backed up file, the user can determine whether compaction was a success (Presence of "Cp" in the suffix).
Note: Safe compaction technique is used, so that even if the process fails, the original file remains un-affected. In such an eventuality, the backup gets done without compaction.
If DoCompact option is selected and the host db has a password, it will be needed as one of the arguments in compaction statement. The user will have to enter this password only once during a given session. If the host db is linked to one or more back ends, and some or all of these are password protected, all the back ends will get compacted and backed up, using the passwords extracted from relevant connection strings.
Old backup files in excess of the maximum limit set by the user, get deleted simultaneously. Backup folder can be prescribed by the user. After each backup, latest count of backup files, apart from particulars of last backup, is displayed.
On click of a button, the user can see the list of all files existing in backup folder. Files <= 8 Hrs old are highlighted in light green, those > 8 Hrs and <= 24 Hrs old are in orange color while others ( > 24 Hrs old) are shown in grey color.
Version: Access 2000 file format.
References: DAO 3.6, Microsoft Scripting RunTime
Installation:
The folder SelfSaveAddIn should be put directly on the C: drive, so that the
path for .mda file is -
C:\SelfSaveAddIn\SelfSaveAddIn.mda. (This is
important, so as to establish the correct registry key)
Open any database in Access and click on Tools > Add-Ins > Add-In
Manager.
Click on Add New. Browse to the folder and file at C:\SelfSaveAddIn\SelfSaveAddIn.mda
Click OK. This will copy the .mda file to Microsoft's default Add-in folder for
Access.
You have to do this only once.
Use:
To use SelfSaveAddIn from within any database, click Tools > Add-Ins >
SelfSaveBackUp
Technical Notes:
Note: General module named
basCommDlg, an adaptation from Access Developer's Handbook, has been kindly
provided by Bill Mosca
=============================================================