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

Programatically copying a table between two databases 2

Status
Not open for further replies.

VBAguy22

IS-IT--Management
Aug 5, 2003
180
CA
Hello,
How do I copy myTable from C:\myDB1.mdb to C:\myDB2.mdb programatically using VB?
 
Do you have a code example?
It's not working for me :(
I put down

DoCmd.TransferDatabase acExport, "Microsoft Access", "C:\myDB1.mdb", acTable, "myTable", "C:\myDB2.mdb
 
Hi,

Try this code in MyDB1:

DoCmd.TransferDatabase acExport, "Microsoft Access", "C:\MyDB2.mdb", acTable, "MyTable", "MyTable"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top