F
FrustratedAZ
Guest
I'm a newbie, and taking a class on Access.
I can't seem to get a IIf function to work for me.
What I need it to do is add $2 to a sum of two fields if one of the fields equals a value. But I also need the calculated field to add two fields together.
So far I have the two fields adding together, ( BillTotal: Sum([OrderAmt] +[DeliveryCharge]) )
How do I go about adding the IIf function to this same calculated field?
I tried doing the following, but it does not work: BillTotal: IIf (City="Naples", Sum([OrderAmt] + [DeliveryCharge] +2, Sum([OrderAmt] + [DeliveryCharge))
What should it be?
I can't seem to get a IIf function to work for me.
What I need it to do is add $2 to a sum of two fields if one of the fields equals a value. But I also need the calculated field to add two fields together.
So far I have the two fields adding together, ( BillTotal: Sum([OrderAmt] +[DeliveryCharge]) )
How do I go about adding the IIf function to this same calculated field?
I tried doing the following, but it does not work: BillTotal: IIf (City="Naples", Sum([OrderAmt] + [DeliveryCharge] +2, Sum([OrderAmt] + [DeliveryCharge))
What should it be?
