Here is a copy of a SubRoutine that I built a while back that you may can alter to your needs. This does not extract each table, but instead make a complete backup of the Backend db.
Public Sub BackUp97()
On Error GoTo Err_Backup
Dim db As Database
Dim strSource As String, strDest As String, strError As String
Dim strMsgComplete As String, strTitleComplete As String
Dim strInPutMsg As String, strInputTitle As String
strInPutMsg = "Enter Complete Path to Save Backup File"
strInputTitle = " Enter Location for Backup"
strMsgComplete = "The Database was Sucessfully Saved to the Location Chosen."
strTitleComplete = " Backup Complete"
BeginBackup:
Set db = CurrentDb()
' Path where backend database is located
' Change Path and File Name to your needs
strSource = "C:\YourFolderName\YourBackEnd.mdb"
' Destination where data file is to be copied
strDest = InputBox(strInPutMsg, strInputTitle)
DoCmd.Hourglass True
FileCopy strSource, strDest
db.Close
DoCmd.Hourglass False
' Backup has completed - Give Successful Completion Message
MsgBox strMsgComplete, vbInformation + vbOKOnly, strTitleComplete
Exit_Backup:
Exit Sub
Err_Backup:
Select Case Err.Number
Case 61
strError = "The Disk is full, Cannot Save to this Disk." _
& vbCrLf & vbCrLf & "Insert a New Disk then Click ""OK"""
MsgBox strError, vbCritical, " Disk Full"
Resume BeginBackup
Case 70
strError = "The File is currently open." & vbCrLf & _
"The File can not be Backed Up at this time."
MsgBox strError, vbCritical, " File Open"
Case 71
strError = "There Is No Disk in Drive" & vbCrLf & vbCrLf & _
"Please Insert Disk then Click ""OK"""
MsgBox strError, vbCritical, " No Disk"
Resume BeginBackup
Case 75
strError = "Invalid Path Error" & vbCrLf & vbCrLf & _
"Check Path and File and try again"
MsgBox strError, vbCritical, " Invalid Path Error"
Resume BeginBackup
Case 76
strError = "You Clicked Cancel Operation" & vbCrLf & vbCrLf & _
"Click ""OK"" to Continue."
MsgBox strError, vbInformation, " Cancel Operation"
Case Else
Err.Raise Err.Number, Err.Description
Resume Next
End Select
DoCmd.Hourglass False
Resume Exit_Backup
End Sub
HTH
RDH
[This message has been edited by R. Hicks (edited 11-23-2001).]