All,
I am trying to make an IIF statement with three possible outcomes and not working:
It tells me i'm missing parathesis or wrong argument. I keep changing to make it correct but still getting errors. Can someone look at it and make suggestions please. Thanks
I am trying to make an IIF statement with three possible outcomes and not working:
Code:
IIf([status]="Active" and [Type]= “Cost”,[rate1]-[rate2]+[ rate4],IIf([status]="InActive",[ rate1]+[rate3],[ rate2]+[rate3])) AS newRate
It tells me i'm missing parathesis or wrong argument. I keep changing to make it correct but still getting errors. Can someone look at it and make suggestions please. Thanks