Nested IIF

uttwo

Registered User.
Local time
Today, 16:47
Joined
Oct 26, 2006
Messages
10
Hi

how would one go about nested IIF

New Sal : IIf([emplsalaryaa]>80000,([emplsalaryaa]+([emplsalaryaa]-80000)/(100)*9)+7713.98)

i have the above but i need to put one more

iif

i have tried , IIF but it does not work

i don't know why?

Asad
 
Code:
New Sal : IIf([emplsalaryaa]>80000,([emplsalaryaa]+([emplsalaryaa]-80000)/(100)*9)+7713.98, IIF([whateverfieldyouwant]=WhateverCriteria, value if true, value if false))
 
Here is one I use, see if this is any help...

Code:
IIf([category] Between 0 And 1,"Current",(IIf([Category]=2,"Active","Legacy")))

This returns the following

Category 0 = Current
Category 1 = Current
Category 2 = Active
Category 3 = Legacy
Category 4 = Legacy

If you give us the other iif statement we may be able to help you place it correctly in the query.
 
Thanks a lot it works!!!

Your help is much appreciated
 

Users who are viewing this thread

Back
Top Bottom