![Avatar of JamesBing](https://cdn.experts-exchange.com/images/experts-exchange/avatar-01-large.gif)
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
Thanks in advance.
Bing
![Avatar of JamesBing](https://cdn.experts-exchange.com/images/experts-exchange/avatar-01-large.gif)
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
![Avatar of TomLaw1999](https://cdn.experts-exchange.com/images/experts-exchange/avatar-01-large.gif)
The beauty about using the Copyfile function is that it will allow you to copy a file whilst it is still open.
![Avatar of Basker](https://cdn.experts-exchange.com/images/experts-exchange/avatar-01-large.gif)
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.
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