469,072 Members | 1,846 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,072 developers. It's quick & easy.

MS Access 2003 Maximum number of values in a CHOOSE function

I'm using Access 2003 and have a CHOOSE function in a query. I can use up to 28 values with no problem, but when I add the 29th value,I get the message "The expression you entered is too complex". I thought the limit was something like 256 values but I'm thinking I'm at the max with 28. I've received this same message when I try to nest too many IIF statements. Any suggestions?
Oct 26 '12 #1
2 2092
2,321 Expert Mod 2GB
If you are using that many choose options it sounds like you might benefit from using a sub-query or vba code. Without more details on what you are trying to accomplish and how, we can't really provide any more usefull help.
Oct 26 '12 #2
32,154 Expert Mod 16PB
My suggestion would be to put the choices into a table when they get to more than three or four. Benefits are that the design is much clearer and the execution is much quicker. A natural follow-on from the first point is that it's easier to maintain in the longer term too.

Using Choose() rather than IIf() is a good sign that you're thinking about what you do mind.
Oct 27 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by chirs | last post: by
2 posts views Thread by Denis | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.