Union Query three tables

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am a novice to Access and I'm sure this is a easy to do, but I am having a
problem combining three tables. I figured out how to combine two tables using
a Union Query, but can I also combine the other table in the same query? I
keep getting an error message when I try.
 
You can union more than two tables in the same query.

You may want to post the error message you are receiving.

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.


I am a novice to Access and I'm sure this is a easy to do, but I am having a
problem combining three tables. I figured out how to combine two tables
using
a Union Query, but can I also combine the other table in the same query? I
keep getting an error message when I try.
 
I am a novice to Access and I'm sure this is a easy to do, but I am having a
problem combining three tables. I figured out how to combine two tables using
a Union Query, but can I also combine the other table in the same query? I
keep getting an error message when I try.

SELECT this, that, theother FROM Table1
UNION < or UNION ALL >
SELECT what, who, which FROM Table2
UNION
SELECT first, second, third FROM Table3;

All of the SELECT clauses must have the same number of fields, and
they must match in size and datatype.

If you have a query - it helps to post the SQL.
If you have an error message - it helps a LOT if you post the error.

You can see your computer; we cannot!


John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top