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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automating copying a table

Status
Not open for further replies.

gransbpa

Programmer
Jun 5, 2001
98
0
6
NL
Hi there,

I want to copy table from one database to another with lines of code. I used the TransferDatabase method as well as the CopyObject method, but both create a link to the original database table instead of an actual copy. This is not what I want, however: I want the actual table copied. Anyone know how to do this? Any help will be greatly appreciated.
 
the following code will copy your table to another database, the path of your database location varies:

DoCmd.TransferDatabase acExport, "Microsoft Access", "c:/YourFolder/YourdatabaseName.mdb", acTable, "YourtableName", "YourtableName
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top