Negative results

oxicottin

Learning by pecking away....
Local time
Yesterday, 21:29
Joined
Jun 26, 2007
Messages
870
Hello im getting a negative result what and where am I missing in the formula?

IIf([YearsOfService]<=0,0,IIf([YearsOfService]<=1,1,IIf([YearsOfService]<=7,2,IIf([YearsOfService]<=14,3,IIf([YearsOfService]<=24,4,IIf([YearsOfService]>=25,5))))))
 
At the end you have if with nothing in the True or False results. So I guess you simply get False as the final result.

Use Select Case.
 
smig, its a query expression so how could I use select case?
 
,IIf([YearsOfService]>=25,5,??))

You need something here!
 

Users who are viewing this thread

Back
Top Bottom