N
nicpkh via AccessMonster.com
I want to use this If statement on my query but then it said complex if
statement. Any suggestion on how can i use this condition on my query. Thanks
IIf([TotalUnit]>=3795,24,
IIf([TotalUnit]>=3690,23,
IIf([TotalUnit]>=3585,22,
IIf([TotalUnit]>=3480,21,
IIf([TotalUnit]>=3375,20,
IIf([TotalUnit]>=3270,19,
IIf([TotalUnit]>=3165,18,
IIf([TotalUnit]>=3060,17,
IIf([TotalUnit]>=2955,16,
IIf([TotalUnit]>=2850,15,
IIf([TotalUnit]>=2745,14,
IIf([TotalUnit]>=2640,13,
IIf([TotalUnit]>=2535,12,
IIf([TotalUnit]>=2430,11,
IIf([TotalUnit]>=2325,10,
IIf([TotalUnit]>=2220,9,
IIf([TotalUnit]>=2115,8,
IIf([TotalUnit]>=2010,7,
IIf([TotalUnit]>=1905,6,
IIf([TotalUnit]<=1800,5,5))))))))))))))))))))
statement. Any suggestion on how can i use this condition on my query. Thanks
IIf([TotalUnit]>=3795,24,
IIf([TotalUnit]>=3690,23,
IIf([TotalUnit]>=3585,22,
IIf([TotalUnit]>=3480,21,
IIf([TotalUnit]>=3375,20,
IIf([TotalUnit]>=3270,19,
IIf([TotalUnit]>=3165,18,
IIf([TotalUnit]>=3060,17,
IIf([TotalUnit]>=2955,16,
IIf([TotalUnit]>=2850,15,
IIf([TotalUnit]>=2745,14,
IIf([TotalUnit]>=2640,13,
IIf([TotalUnit]>=2535,12,
IIf([TotalUnit]>=2430,11,
IIf([TotalUnit]>=2325,10,
IIf([TotalUnit]>=2220,9,
IIf([TotalUnit]>=2115,8,
IIf([TotalUnit]>=2010,7,
IIf([TotalUnit]>=1905,6,
IIf([TotalUnit]<=1800,5,5))))))))))))))))))))