Hi everyone,
I've come across a problem with importing access tables from one mdb to another in VB.
Usually I use FDialog and TransferDatabase.
The item im working on right now needs to import a table from 1 mdb (MDB1) to another (MDB2), but the table name in MDB1 changes daily.
Can anyone tell me how I can make this dynamic so that whatever the table name in MDB1 is, it will import.
(MDB1 only ever has one table).
This is the line of code I would normally use:
I've come across a problem with importing access tables from one mdb to another in VB.
Usually I use FDialog and TransferDatabase.
The item im working on right now needs to import a table from 1 mdb (MDB1) to another (MDB2), but the table name in MDB1 changes daily.
Can anyone tell me how I can make this dynamic so that whatever the table name in MDB1 is, it will import.
(MDB1 only ever has one table).
This is the line of code I would normally use:
Thanks (hope that makes sense)DoCmd.TransferDatabase acImport, "Microsoft Access", Me!txtPath, acTable, "TableName", "tbl_MyTable”, DataOnly, False