V
vtj
I am trying to get a union query to append records to a table. The fields
are identical and in the same order in the table I'm appending to as the
query. I get an error 'Syntax error in from clause' when I try to run this.
The SQL is: INSERT INTO [APPROP TEST] SELECT *
FROM [B04 073107]
UNION ALL
SELECT * FROM [B11 073107];
The two queries work in the union query if I take the 'INSERT INTO [APPROP
TEST]' away from the above SQL. The table is blank to start with and there
are about 40 queries that I would like to union to make the table. I was
trying to get it to work with just two queries before adding the rest. Is
this even a possible? Or am I dreaming?
are identical and in the same order in the table I'm appending to as the
query. I get an error 'Syntax error in from clause' when I try to run this.
The SQL is: INSERT INTO [APPROP TEST] SELECT *
FROM [B04 073107]
UNION ALL
SELECT * FROM [B11 073107];
The two queries work in the union query if I take the 'INSERT INTO [APPROP
TEST]' away from the above SQL. The table is blank to start with and there
are about 40 queries that I would like to union to make the table. I was
trying to get it to work with just two queries before adding the rest. Is
this even a possible? Or am I dreaming?