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!

Access 2002: How to Backup Files (Docmd.CopyDatabaseFile)

Status
Not open for further replies.

dreman

Programmer
Jan 16, 2002
272
US
I have an application that I would like to have a click command to backup database file.

I am using Docmd.CopyDatabaseFile but I keep on getting an error that this command is not available (error 2022)!

Please advise.
Thank you.
dré
 
Well you could copy out tables individually with TransferDatabase if that helps any.

Best regards,
J. Paul Schmidt - Freelance ASP Web Developer
- Creating "dynamic" Web pages that read and write from databases...
 
Have you tried

FileCopy strSource, strDest


where strSource is the back end database and strDest is the name of the destination file (and path). I use this to create a copy of the backend file with the date of creation added to the backend filename.

John R
 
I dir try:
filecopy table, backup
it is giving Microsoft Access error file not found error (53)
remeber that table is a database table, I need to back up the table.
Please advise, thank you
dré
 
Dreman

In you first post you state that you want to backup a database file, not a table. Filecopy won't work with a table. In the example I gave above, it is used to backup a split database, backing up the backend data into a new (datestamped) file in a different location.

John R
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top