G
Guest
I'm sure this is something really simple; as I've had it working. However,
I'm wondering if anyone can offer suggestions as to why & how to get rid of
the "invalid arguement" error message I am getting on the append statement.
THANKS!!
'set objects/"pointers"
Set MyDb = OpenDatabase("C:\Documents and Settings\home\Desktop\Tammys
Trial\Marketing928_BE.mdb")
Set db = CurrentDb
'for each table in "MarketingBE.mdb"
For Each MyTdf In MyDb.TableDefs
If Left(MyTdf.Name, 4) <> "MSys" Then
Set tdf = db.CreateTableDef(MyTdf.Name)
With tdf
.Connect = ";DATABASE = C:\Documents and
Settings\home\Desktop\Tammys Trial\Marketing928_BE.mdb"
.SourceTableName = MyTdf.Name
End With
db.TableDefs.Append tdf
End If
Next
I'm wondering if anyone can offer suggestions as to why & how to get rid of
the "invalid arguement" error message I am getting on the append statement.
THANKS!!
'set objects/"pointers"
Set MyDb = OpenDatabase("C:\Documents and Settings\home\Desktop\Tammys
Trial\Marketing928_BE.mdb")
Set db = CurrentDb
'for each table in "MarketingBE.mdb"
For Each MyTdf In MyDb.TableDefs
If Left(MyTdf.Name, 4) <> "MSys" Then
Set tdf = db.CreateTableDef(MyTdf.Name)
With tdf
.Connect = ";DATABASE = C:\Documents and
Settings\home\Desktop\Tammys Trial\Marketing928_BE.mdb"
.SourceTableName = MyTdf.Name
End With
db.TableDefs.Append tdf
End If
Next