Link to home
Start Free TrialLog in
Avatar of JamesBing
JamesBing

asked on

Backing up Access Database

I have an Access database that I want to automatically make a backup copy of it daily and place the copy in a different directory.  Just, wondering, is this doable in VB application?  If so, how do I do it?

Thanks in advance.
Bing
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

You could just as easily do it with a batch file, but VB could certainly do it as well.

1) Are you wanting your backup "app" to be running constantly, and then make a backup when it sees that it is time?

2) Do you just want a backup whenever you bootup?

3) Do you want to use "Scheduled Tasks" in windows to run your backup app at a specified time?

Many options...let us know.

Idle_Mind
Avatar of JamesBing
JamesBing

ASKER

I want to run at a certain time say 10AM.

I wrote a batch file to do this, but somehow it doesn't work.  I mean, it does work, but I don't know what happen recently it doesn't work anymore (https://www.experts-exchange.com/questions/20797170/Problem-w-this-bat-file.html).  That's why I'm writing it in VB.

bing
ASKER CERTIFIED SOLUTION
Avatar of TomLaw1999
TomLaw1999
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The beauty about using the Copyfile function is that it will allow you to copy a file whilst it is still open.
Better thing is to create another program to take care backups,cleanup stuff etc. In that program you can allow the users to customize the backup time, etc., Make sure the program is running for 24 hrs.