G
Guest
Hi
How can you "overwrite" a table "without"
TableABC becomeing TableABC1 then TableABC2, etc
I want to import a whole table (structure and data) from another DB into the
current DB
I have tried deleteing the table then importing - but the code stops after
the delete.
Private Sub SomeButton_Click()
DoCmd.DeleteObject acTable, "SomeTable"
Exit Sub
DoCmd.TransferDatabase acImport, "Microsoft Access", "C:\Documents and
Settings\UKOPS\My Documents\UKOP_Stuff\Copy (2) of merchant.mdb", acTable,
"SomeTable", "SomeTable", structureonly:=False
End Sub
And just using DoCmd.TransferDatabase causes the table to add as 1 then 2
then 3 etc as above.
Any ideas would be helpful
How can you "overwrite" a table "without"
TableABC becomeing TableABC1 then TableABC2, etc
I want to import a whole table (structure and data) from another DB into the
current DB
I have tried deleteing the table then importing - but the code stops after
the delete.
Private Sub SomeButton_Click()
DoCmd.DeleteObject acTable, "SomeTable"
Exit Sub
DoCmd.TransferDatabase acImport, "Microsoft Access", "C:\Documents and
Settings\UKOPS\My Documents\UKOP_Stuff\Copy (2) of merchant.mdb", acTable,
"SomeTable", "SomeTable", structureonly:=False
End Sub
And just using DoCmd.TransferDatabase causes the table to add as 1 then 2
then 3 etc as above.
Any ideas would be helpful