I have an Access database that I would like to have automatically backed up when I close the program. I have a "Quit Application" button on my MainMenuFrm that runs the code:
DoCmd.Quit acPrompt
but I would like the program to initiate a backup command following the closing. I can program a dos command like xcopy *.* h:\dailybackup /y
and this is the type of code I want to run automatically when I close the program.
Any ideas on how I can tie the two together?
Thanks for the help.