ciao SherylZA,
"dont'ask....?" ok ;-)
the following code allow you to export the tables from currentdb 2010from another one, customizing
strPathDbReceiver path string.
Unfortunately....I really don't know if coudl be helpful from moving accdb tables into an older 1997 Access database...maybe you got backward compatibiliy issues with AC20xx database version...
Besides, I have not choise to test it witht 1997...
try...and let us know...!
ciao, Sandro.
Option Compare Database
Option Explicit
Private Const strPathDbReceiver = "C:\pathOfDestinationDB"
Sub exporTables()
Dim tbf As DAO.TableDef
Dim dbs As DAO.Database
Dim i As Integer
Set dbs = DBEngine(0)(0)
DoCmd.SetWarnings False
For Each tbf In dbs.TableDefs
If (tbf.Attributes And dbSystemObject) Then
Else
DoCmd.TransferDatabase acExport, "Microsoft Access", strPathDbReceiver, acTable, tbf.Name, tbf.Name
End If
Next
DoCmd.SetWarnings True
Set dbs = Nothing
End Sub