Link to home
Start Free TrialLog in
Avatar of SeanNij
SeanNijFlag for South Africa

asked on

IIF Function using < or > in True / False Part

Hi all!

Query in MS Access 2013.

I want to return results based on an IIF function along the lines off:

If (condition is met, >10 , <10) (In my criteria field of the TypeID column)

Ie, my criteria must return the records where the typeid field has value less then 10 or if false, values that are greater then 10?

Easier to ask....

Thanks
Sean
Avatar of mbizup
mbizup
Flag of Kazakhstan image

Try this:


IIf ({your condition goes here}, ABS(TypeID * (TypeID >10)) , ABS (TypeID * (TypeID < 10)))

Open in new window

SOLUTION
Avatar of mbizup
mbizup
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial