M
Marshall Barton
George said:I have two tables that I would like to combine in VBA.
Both tables have the same structure (field names and
format). I would simply like to append the contents of
table2 to the bottom of table1. Is there a VBA command to
do this? I do not want to loop through the records of
table2 and copy them one at a time.
Use an Append query to do that.
db.Execute "INSERT INTO table1 SELECT * FROM table2", _
dbFailOnError
Note: you can use a UNION ALL query to retrieve all the data
in both tables without actually combining the tables.