AcceSs-AbLe
Board Regular
- Joined
- Jan 27, 2003
- Messages
- 87
Hi,
I am trying to run this query, the first set of If statements produce a result, however the second set of if statements appear to be doing nothing.
CREDIT: IIf([URVALUE]>0,IIf([Account]=5303020001,"C",IIf([Account]=1003050000,"D",IIf([URVALUE]<0,IIf([Account]=1003050000,"C",IIf([Account]=5303020002,"D"))))))
**It works fine until it goes to [URVALUE]<0
How can I amend the query so that all the statements would work.
Thank you!
I am trying to run this query, the first set of If statements produce a result, however the second set of if statements appear to be doing nothing.
CREDIT: IIf([URVALUE]>0,IIf([Account]=5303020001,"C",IIf([Account]=1003050000,"D",IIf([URVALUE]<0,IIf([Account]=1003050000,"C",IIf([Account]=5303020002,"D"))))))
**It works fine until it goes to [URVALUE]<0
How can I amend the query so that all the statements would work.
Thank you!