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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Backup Current DB ?

Status
Not open for further replies.

SKing44

Technical User
Dec 2, 2001
8
GB
I hope somebody can answer this.....

I am trying to create a function which will back up my currently open DB upon request, but not to the same file, for example My DB is H:\Files\DB\Sample.mdb, and I want to save it to C:\Files\Backup\sample.mdb (As the same file name).

Can this be done in Access 97 ?

Thanks :cool:
 
Try this...


Sub BackUp(strBackupFile As String)

FileCopy CurrentDb.Name, strBackupFile

End Sub

For example...

BackUp "C:\Files\Backup\sample.mdb"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top