Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy a table from external database to current database.

Status
Not open for further replies.

softlover

Programmer
Apr 4, 2002
88
CN
I know the way to copy a table from current database to an external database. Here is the syntax,
DoCmd.CopyObject [destinationdatabase][, newname][, sourceobjecttype][, sourceobjectname]
Now I want to copy a table from external to current.
 
Have a look at the DoCmd.TransferDatabase method.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Hi softlover,

DoCmd.TransferDatabase acImport, "Microsoft Access", "c:\yourdatabasename.mdb", acTable, "TableName", "NewTableName", False

HTH.

Peter.

Remember- It's nice to be important,
but it's important to be nice :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top