G
Guest
How many nested IIf statements are allowed in a single query field?
I have a list of 41 slot ranges with corresponding section numbers. I am
trying to use a query to say if the slot number for an item is between the
two slot range numbers, assign this section number. See my example below.
IIf([Slot] Between "030101" And "030192","401", IIf([Slot] Between "030701"
And "031192","402", IIf([Slot] Between "031301" And "031792","403",
I did this 41 times for each section with a FALSE value at the end and, when
I try to run the query, it says the query is too complex.
Does anyone have a better way to do this or any suggestions? Thank you so
much!
I have a list of 41 slot ranges with corresponding section numbers. I am
trying to use a query to say if the slot number for an item is between the
two slot range numbers, assign this section number. See my example below.
IIf([Slot] Between "030101" And "030192","401", IIf([Slot] Between "030701"
And "031192","402", IIf([Slot] Between "031301" And "031792","403",
I did this 41 times for each section with a FALSE value at the end and, when
I try to run the query, it says the query is too complex.
Does anyone have a better way to do this or any suggestions? Thank you so
much!