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!

How can I append a table to another table 3

Status
Not open for further replies.

ivs7720

IS-IT--Management
Aug 19, 2004
69
US
Hi,

New to VBA in Access. How can I append a table to another using VBA coding?

Thank you in advance!
 
Provided the 2 tables have same layout:
DoCmd.RunSQL "INSERT INTO Table1 SELECT * FROM Table2"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
And, if they don't have the same layout, just remake a query to put the data of table2 into the layout of table1, and then just replace "table2" from PHV's post with that query name...

...or replace everything from "SELECT..." forward with the SQL of the query that re-formats table2 into the proper layout.

HTH
 
Another How can I break for line continuation to the next line?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top