Kim
You can "nest" IIF() statements to accomplish your "or". (see in-line
below)
Kim said:
Yes, I've tried the Access Iif( ). I would like an "or" in the IIf statement
if possible (or something similar). I need to have Access to check to see if
the first number is negative or postive.
If the first number is negative - I need the second number subtracted from
the first number so I don't end up with a large negative result.
IIF([FirstNumber]<0, [FirstNumber] - [SecondNumber], ...)
If the first number is postive - I need to have the first number subtracted
from the second and the end result to show as negative if the second number
is larger than the first.
IIF(([FirstNumber]<0), ([FirstNumber] - [SecondNumber]),
IIF(([SecondNumber]>[FirstNumber]),
(([SecondNumber]-[FirstNumber])*-1),([SecondNumber]-[FirstNumber]))
(I stuck in way too many extra parentheses, to help keep my thoughts
together)
--
Good luck
Jeff Boyce
<Access MVP>