Too many fields defined. (Error 3190)

jmersing

Well-known Member
Joined
Apr 14, 2004
Messages
887
I'm using a union query to get the top 20 values of 5 criteria. There are 104 columns in the result. I'm now getting this errror after building 3 of the required 5 criteria.

Any way around this?




Too many fields defined. (Error 3190)
You tried to perform an operation that involves more than 255 fields. Reduce the number of fields, and then try the operation again.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
You might need to loop through the criteria, appending the results to a reporting table. That way you never exceed the column limit. BTW, 104 fields for a table seems very high. Is this a normalized structure?

Denis
 
Upvote 0
Thanks Sydney, the query returns 52 weeks of data, hard counts and percentages, thats why their are so many fields.

I was able to use a combination of queries to get under the limit. It's ugly, but it's working.
 
Upvote 0
You could simplify the structure by changing it to
WeekNumber
HardCount
Percentage

A lot more rows (but that should not be an issue), but reporting will be much simpler.

Denis
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,558
Latest member
aivin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top