I have a query that using the iif function with 9 conditions listed - it works, but when I add the 10th condition it gives me the expression is too complex error msg. Anyone know how to get around this?
Yeah, it sounds like you're after VB select case functionality. There is an access query equivalent that you can use directly in the query. You might want to try the Switch function. Here is an example that translates one character codes in a database field into "english" words for display on a report:
[tt]
SELECT Switch(Method='P','Percent',
Method='F','Flat Rate',
Method='A','Additional Amount',
True,'Unrecognized Code') AS EnglishMethod
FROM ExampleTable
[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.