S
Samantha
Hi,
Is it possible to insert all the fields from a query into a table using SQL
code? For example, I have QueryA with 30 fields, but I don't want to have to
create the table with all 30 identical fields as QueryA. If it is possible,
what would the SQL code be?
I tried the following with only 1 field in table 'Ztest' but it failed.
sql = "INSERT INTO [Ztest] "
sql = sql & " SELECT * FROM qry03PartsOnly"
db.Execute sql, dbFailOnError
Any pointers would help. Thanks in advance.
Samantha
Is it possible to insert all the fields from a query into a table using SQL
code? For example, I have QueryA with 30 fields, but I don't want to have to
create the table with all 30 identical fields as QueryA. If it is possible,
what would the SQL code be?
I tried the following with only 1 field in table 'Ztest' but it failed.
sql = "INSERT INTO [Ztest] "
sql = sql & " SELECT * FROM qry03PartsOnly"
db.Execute sql, dbFailOnError
Any pointers would help. Thanks in advance.
Samantha