Computer Learning Zone CLZ Access Excel Word Windows

Learning is not attained by chance, it must be sought for with ardor and diligence.

-Abigail Adams
Home   Courses   Seminars   Templates   Help   TechHelp   Forums   Contact   Join   Order   Logon  
Home > Courses > Access > Templates > Backup
Backup Template

Microsoft Access Backup Database Template

 S  M  L  XL  FS  |  Slo  Reg  Fast  2x  Buy Now



If you are concerned about making good backups of your database, then this template is for you. Most backup solutions don't properly backup Access files. They have a hard time copying files that are open or in use. This is an Access-based solution that deals with that problem. This template includes a form that you can copy into any database which will ensure that all of your database files are backed up from the source folder to a specified destination folder.

In addition to just the template, there are also several videos which give you a good background on how to perform proper backups, how to use Google's Backup and Sync cloud service, how to perform automated backups, how to kick other users out of the database at a specified time (if they leave the office and forget to close Access) and how you can run your automated backup at a specific time, like 4am. Watch the first two free videos above for more information.

Sample Database

If you'd like to download a sample copy of the database template, you can do so here. This is a NON-EDITABLE version of the backup template which will let you see it work in action.

Full Purchased Database

Once you have purchased the full database template, come back to this page and click on the Download button below. This will give you access to the ZIP file containing the Template ACCDB file. You will also have access to videos 2 and 3 above. Please watch them.



  • Does the Backup Template require me to know VBA? You'll have to know how to use a little VBA if you want to customize the Backup Template to run at a specific time of day. If you want to run the event manually then all you have to do is drop my form in your database and click RUN yourself. However, if you want to have it kick off at, say, 4am, then you need to insert just a few lines of code into an event on your main menu form. I show you how to do this in the videos, but I do recommend you at LEAST watch my Intro to VBA video.
  • How often per day does the Template back up? I show you how to kick off the event once per day, however with a little modification you could run it as many times as you want. For most businesses I think once per day is just fine.
  • Will it backup to my NAS (Network Attached Storage)? Sure. It basically performs a file copy of all of your database files. You can copy it to another hard drive, a networked hard drive, a Google Drive backup folder like I recommend, or wherever else you can copy files normally.
  • I have continuous back to the Cloud. Is this better? Continuous cloud server backups are nice. Consider this a supplement. I use Google Backup & Sync myself as I show in the videos. The problem is that Access keeps ACCDB and MDB files open and locked when they're in use. Sometimes they'll copy just fine. Sometimes they won't. I had a client who was using a Cloud-based backup and really needed to restore yesterday's file, but found out it wasn't properly backed up. This solution takes care of that problem.

Customize For Your Needs

If you would like to discuss customizing this database for your needs, and integrating it into your current setup, please see my consulting page for details on rates and other information.


Got sales or customer service questions about this template? Feel free to post them below. If you have a questions, or you discover a bug or want to suggest a new feature, then please by all means post your comments below.


Integrate with Updater Upload Images   Link 
Brad Weekley 
3 months ago
Hi Richard,
Will the Backup Template integrate with the AccessUpdater?  
Anything to look out for that my cause a conflict?
Brad Weekley
3 months ago
So far no issues for me.  They both work soooooo nice!
Brad Weekley
3 months ago
Question. Since I have both the Updater and Backup DBs and my database is split, and I have my FE (copy that gets updated) and BE in the same folder on another server, would it make sense to  have the BackupDatabase as a separate DB altogether, always open on my (the developers) computer?  
That way I would only have one FE to work from and not have to manage to FEs, one with the back up form and one without that would be for updates.  The FE on all DBs would close and the BackupDatabase would be able to to its work.
Does that make sense?
Richard Rost
3 months ago
Yeah, whatever works for you is good. Honestly, you really only need to backup your BE file for the data. As long as your FE file that you're developing on is sitting on a drive that gets backed up (like I use Google Sync) then your changes will get saved in the Cloud. Google keeps versions too.
Brad Weekley
3 months ago
At about 18:40 on the Automated Backups video, you talk about placing a docmd.quit on the main form.  This is in case anyone closes the main form it will close the database down.  I've tried it on the On Unload and On Close events but both give an Run-Time error '2046':  The command or action 'Quit' isn't available now.
Can you help?
Adam Schwanz
3 months ago
Do you have anything else running live/bound on the main form? It works fine for me on the on close event. You could also try to save or do a If Me.Dirty = True Then Me.Dirty = False before you run the quit command and see if it works.
Richard Rost
3 months ago
You should literally just be able to put "Quit" in the On Close event and if the form is closed, the whole database shuts down. Like Adam said, if you have any other events running or something happening in the background, that could interfere with it.
Brad Weekley
3 months ago
Not sure why but I'm still not getting that to work.  Same error.  The main form is not bound.  It does have some commend buttons on it. It also has a few text boxes the populate via DCount and Date() and Time().  So I deleted eveything on the form...still the error.  Then I created a new database with one form.  Input a On Close event to the form or 'Docmd.Quit'.
Still the error.  "Run-Time error '2046':  The command or action 'Quit' isn't available now."
What am I doing wrong?
Adam Schwanz
3 months ago
The fact that it errors on a completely empty database with just a form and button is odd.

Just to confirm, is the database running in a trusted location? (Both your real one and the test button one)
Richard Rost
3 months ago
Try opening the database Exclusively. See if it works then. If so, it's a problem with another user (or instance) connecting to your database.

What version of Access? I know there were some bugs in older versions like 2010 causing problems with Quit. Update to the most recent version.

And of course, I know you've already tried running down the Troubleshooter.
Richard Rost
3 months ago
Also, try Application.Quit instead of DoCmd.Quit. See if that works.
Brad Weekley
3 months ago
It is not in a trusted location.  It appears that I cannot add a trusted location probably due to the IT rules here.  Not sure.  Would that be the cause?
Richard Rost
3 months ago
Yes, absolutely. If the database isn't running from a trusted folder, MOST "potentially unsafe" functions and commands won't work. To do any serious development with Access, you'll need that trusted folder.
Add a Reply

Show All Comments

Start a NEW Conversation
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Account Login
Online Theater
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: templates access backup database template  PermaLink