Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Back Up Database Macro

Status
Not open for further replies.

defosset

Programmer
Apr 1, 2003
48
US
what would the steps be to create a macro that when run it would close my data base and then back it up so if i ran it next time andif it got corrupted i revert to the saved database on the other drive. what macro functions do i need to use to accomplish this, i will be incorprating this into a switchboard button

Nick
 
Hi

I wanted to do this in the past, but never found an 'easy' way to do it. I ended up having a seperate DB. Then in the live DB looped all tables and copied them to the backup DB (using VBA). I had previously copied queries, modules and reports to the backup DB and made a mental note to manually re-copy if I changed them.

Not your ideal answer, but may help...
Good luck
 
See

The issues are the same.

In addition:
If your databases are not part of you normal Backup system ( then WHY ? ) you'll probobly find it a lot easier to create a .bat file to do a simple File Copy on a schedule basis.


'ope-that-'elps.



G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top