I try using this below mentioned switch in code and for whatever reason, the switch operates but generates the next answer in the switch instead of the correct one.
For instance:
[days oustanding] = 21 is generating 2
instead of the desired 1
and
[days oustanding] =168 is generating nothing
instead of the desired 4
I do not believe I have the operators incorrect and the context I'm using this in is an update query.
Thank you for any help in advance,
Code:
For instance:
[days oustanding] = 21 is generating 2
instead of the desired 1
and
[days oustanding] =168 is generating nothing
instead of the desired 4
I do not believe I have the operators incorrect and the context I'm using this in is an update query.
Thank you for any help in advance,
Code:
Code:
Switch([days outstanding]>-1 And [days outstanding]<30,1, [days outstanding]>30 And [days outstanding]<60,2, [days outstanding]>60 And [days outstanding]<90,3, True,4)
Comment