S
sbrokate
HI,
I've been trying to get this query working for a couple of days now, but no
luck. Can anyone tell me what I am doing wrong?
I have three tables that I need to combine all the data into one table to run
reports off of. Table names are Authorizations1, Authorizations2, and
Authorizations3. All three have same data types and fields. If I have just
one table listed, the query works, but once I load the second table to the
query, I get the Syntax Error in From Clause. Checked table name spellings,
etc and all are good to go.
SELECT Authorizations2.FY, Authorizations2.UnitCode, Authorizations2.SIC,
Authorizations2.AuthDate, Authorizations2.Amount, Authorizations2.AuthNote
FROM Authorizations2
UNION SELECT Authorizations2.FY, Authorizations2.UnitCode, Authorizations2.
SIC, Authorizations2.AuthDate, Authorizations2.Amount, Authorizations2.
AuthNote
FROM Authorizations2
SELECT Authorizations3.FY, Authorizations3.UnitCode, Authorizations3.SIC,
Authorizations3.AuthDate, Authorizations3.Authorization, Authorizations3.
AuthNote
FROM Authorizations3
UNION SELECT Authorizations3.FY, Authorizations3.UnitCode, Authorizations3.
SIC, Authorizations3.AuthDate, Authorizations3.Authorization, Authorizations3.
AuthNote
FROM Authorizations3;
Thanks
Sharon
I've been trying to get this query working for a couple of days now, but no
luck. Can anyone tell me what I am doing wrong?
I have three tables that I need to combine all the data into one table to run
reports off of. Table names are Authorizations1, Authorizations2, and
Authorizations3. All three have same data types and fields. If I have just
one table listed, the query works, but once I load the second table to the
query, I get the Syntax Error in From Clause. Checked table name spellings,
etc and all are good to go.
SELECT Authorizations2.FY, Authorizations2.UnitCode, Authorizations2.SIC,
Authorizations2.AuthDate, Authorizations2.Amount, Authorizations2.AuthNote
FROM Authorizations2
UNION SELECT Authorizations2.FY, Authorizations2.UnitCode, Authorizations2.
SIC, Authorizations2.AuthDate, Authorizations2.Amount, Authorizations2.
AuthNote
FROM Authorizations2
SELECT Authorizations3.FY, Authorizations3.UnitCode, Authorizations3.SIC,
Authorizations3.AuthDate, Authorizations3.Authorization, Authorizations3.
AuthNote
FROM Authorizations3
UNION SELECT Authorizations3.FY, Authorizations3.UnitCode, Authorizations3.
SIC, Authorizations3.AuthDate, Authorizations3.Authorization, Authorizations3.
AuthNote
FROM Authorizations3;
Thanks
Sharon