Union Query too many fields

G

Guest

I created a union query using Select * from each query. When I run it I get
an error message that says too many fields definded. How many fields can be
in a union query?
 
D

Duane Hookom

Try using
UNION ALL
rather than UNION.

131 fields sounds like a bit much. I assume you have your tables as needed.
 
G

Guest

yes, I know it's a bit excessive, but this person wants a "flat" file, with
all data available for all students for all years - contains pre & post test
scores for about 60 different areas of testing.

Anyway, I'm not sure what you mean by UNION ALL - this is what I have:

SELECT *
FROM [2-98-99AllPrePost1]
UNION SELECT *
FROM [2-98-99AllPrePost2];
 
D

Duane Hookom

SELECT *
FROM [2-98-99AllPrePost1]
UNION ALL
SELECT *
FROM [2-98-99AllPrePost2];

--
Duane Hookom
MS Access MVP


Donna said:
yes, I know it's a bit excessive, but this person wants a "flat" file,
with
all data available for all students for all years - contains pre & post
test
scores for about 60 different areas of testing.

Anyway, I'm not sure what you mean by UNION ALL - this is what I have:

SELECT *
FROM [2-98-99AllPrePost1]
UNION SELECT *
FROM [2-98-99AllPrePost2];


Duane Hookom said:
Try using
UNION ALL
rather than UNION.

131 fields sounds like a bit much. I assume you have your tables as
needed.
 

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

Similar Threads


Top