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

How to copy a table programmatically

Status
Not open for further replies.

ping99

Technical User
Mar 16, 2006
45
CA
Hi all,

How to copy a supplier table in NorthWind.mdb to NorthWind2.mdb programmatically ? and also rename to become
suppliernew in Northwind2 ?

Please assist me in coding or advise how to do it ?

TIA

Ping

 
You could create a macro that looks like this:
Echo Echo On = No
SetWarnings Warnings On = No
TransferDatabase Import
Microsoft Access
C:\BlabBlab\NorthWind.mdb
Table
SupplierTableName
SupplierNew
No
Echo Echo On = yes
SetWarnings Warnings On = Yes
 
Oh yeah, you would place that macro in NorthWind2.mdb
 
Thank you very much,

It works great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top