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

copy table 2

Status
Not open for further replies.

samotek

Technical User
May 9, 2005
197
BG
My way of copying table structure only does not work with linked table.it does copy the table but not structure only,and with everything with it.Coukd i avoid that and copy a linked table structure only ?
DoCmd.TransferDatabase acImport, "Microsoft Access", CurrentDb.Name, acTable, "tblClients", "tblObsoleteClients", True
 
DoCmd.RunSQL "SELECT * INTO tblObsoleteClients FROM tblClients WHERE 1=2"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top