Append queries?

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

Guest

Hi,
Is it possible to append 4 queries into one new query?
I import 4 different files into the database, I then rework each individual
table in a query that gives all the 4 queries the same format and headers. Is
it possible to now create a query that puts all the 4 reworked queries into
one new query?
Thanks
George
 
A union query might work. It depends on your definition of "puts all the 4
reworked queries into a new query"/
 
Hi Duane,
"puts all the 4 queries into a new query" - what i mean here is, as they all
have the same field names. I want to list them all in the one query.
How do i build a union query?
 
You must do this in the SQL view. Generically...

SELECT FieldA, FieldB, FieldC, FieldD
FROM qryOne
UNION ALL
SELECT FieldA, FieldB, FieldC, FieldD
FROM qryTwo
UNION ALL
SELECT FieldA, FieldB, FieldC, FieldD
FROM qryThree
UNION ALL
SELECT FieldA, FieldB, FieldC, FieldD
FROM qryFour;
 

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