Union Query - Too Many Fields

B

byeo

I have 4 identical tables with 224 fields each and want to run a union query
on them to get all records but when I run I get the message stating 'Too many
fields defined'. Clicking help, it says "You tried to perform an operation
that involves more than 255 fields." Is my query not formatted correctly or
will it not let me do this? In my mind the operation I'm trying to perform
involves 224 fields...

Thanks,
Bob.
select * from [ITEM_TEMPLATE_BUILD - 1MFG]
union all select * from [ITEM_TEMPLATE_BUILD - 2RAW]
union all select * from [ITEM_TEMPLATE_BUILD - 3PKG]
union all select * from [ITEM_TEMPLATE_BUILD - 4SFG];
 
G

Golfinray

The limit in access is 255 fields. When you union 2 tables with 224 fields
access sees that as 448 fields. You might try an update or append query if
you need to update information from one table to another.
 
B

byeo

Thanks - that's what I suspected but thought I would check. I'll use the
append query.

Golfinray said:
The limit in access is 255 fields. When you union 2 tables with 224 fields
access sees that as 448 fields. You might try an update or append query if
you need to update information from one table to another.

byeo said:
I have 4 identical tables with 224 fields each and want to run a union query
on them to get all records but when I run I get the message stating 'Too many
fields defined'. Clicking help, it says "You tried to perform an operation
that involves more than 255 fields." Is my query not formatted correctly or
will it not let me do this? In my mind the operation I'm trying to perform
involves 224 fields...

Thanks,
Bob.
select * from [ITEM_TEMPLATE_BUILD - 1MFG]
union all select * from [ITEM_TEMPLATE_BUILD - 2RAW]
union all select * from [ITEM_TEMPLATE_BUILD - 3PKG]
union all select * from [ITEM_TEMPLATE_BUILD - 4SFG];
 
J

John W. Vinson

I have 4 identical tables with 224 fields each and want to run a union query
on them to get all records but when I run I get the message stating 'Too many
fields defined'. Clicking help, it says "You tried to perform an operation
that involves more than 255 fields." Is my query not formatted correctly or
will it not let me do this? In my mind the operation I'm trying to perform
involves 224 fields...

Thanks,
Bob.
select * from [ITEM_TEMPLATE_BUILD - 1MFG]
union all select * from [ITEM_TEMPLATE_BUILD - 2RAW]
union all select * from [ITEM_TEMPLATE_BUILD - 3PKG]
union all select * from [ITEM_TEMPLATE_BUILD - 4SFG];

As Golfinray says, the problem is... 672 fields.

224 fields is about 200 too many for any properly designed table!! I strongly
suspect you're "committing spreadsheet" - any way that these monsters could be
normalized?
 

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

Union query 5
Union Query and Field Alias 7
Query is too complex 5
Maximum number of fields in a Union query 0
Union Query - Group & Sum 1
Union Query 1
Union Query 2
query too complex when transposing 2

Top