Import external ACCDB/MDB without specifying table name

LB79

Registered User.
Local time
Today, 17:07
Joined
Oct 26, 2007
Messages
505
Hi all,

This should be simple but...

I have an automated function to import external Access tables to my database (there is only ever 1 table in the external ACCDB/MDB), BUT the names of the external tables are different.
How can I import a table without specifying the name? (ie default import the only table abvailable)

Code:
DoCmd.TransferDatabase acImport, "Microsoft Access", Me!_txtPath, acTable, [B]TableName[/B], "tbl_MyTable", False

Thanks
 
DLookup() the only table in MSysObjects and use that.
 

Users who are viewing this thread

Back
Top Bottom