|
-
Oct 14th, 2001, 01:48 PM
#1
Backup for *.mdb
Guys, I have an mdb file for my application and I want user to make backup of this database on regular basis.
Can anyone help me by providing a code for how to save a copy of a file. I tried with CommonDialog but its not the way I want.
Thanks in advance
-
Oct 14th, 2001, 01:52 PM
#2
PowerPoster
Just use the FileCopy method on the mdb
VB Code:
FileCopy "C:\my.mdb", "C:\backup.mdb"
-
Oct 14th, 2001, 01:54 PM
#3
PowerPoster
Compress
May want to compress it first (less to copy).
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Oct 14th, 2001, 02:01 PM
#4
May want to compress it first (less to copy).
You want to compress it like winzip do ? well I think it will be hard to code, good luck.
-
Oct 14th, 2001, 02:03 PM
#5
I might go with Access Compact Database utitlity
-
Oct 14th, 2001, 02:13 PM
#6
It's not working, getting an error and I know why, it's because my application is using a same database file.
Any alternate way????
-
Oct 14th, 2001, 02:24 PM
#7
PowerPoster
Open connection
You mus close any active connection for the copy or the compaction (i did mean Access compression) to take place
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Oct 14th, 2001, 07:36 PM
#8
Frenzied Member
I would recomend using the file copy API it will copy it even if it is in use.
I would recomend compacting the database on startup of the program.
If its a Multi user program, create a compact program to compact it on startup.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|