theRepublic
Registered User.
- Local time
- Today, 11:42
- Joined
- Jun 30, 2008
- Messages
- 11
Hey Database Experts
In my query I have made a Calculated Field named "Subtotal".
Here is my IFF statement for this field.
=IIF([DiscountRate] =”0”, Subtotal=[Quantity]*[Rate], Subtotal=[Quantity]*[DiscountRate])
Can anyone tell me how to fix this statement?
Pretty much Im trying to state that IF the Discount Rate is equally to Zero, than Subtotal is equal to Quantity * Rate, Otherwise, Subtotal is equal to Quantity * Discount Rate
Make Sence? I hope so. Thanks for the help
In my query I have made a Calculated Field named "Subtotal".
Here is my IFF statement for this field.
=IIF([DiscountRate] =”0”, Subtotal=[Quantity]*[Rate], Subtotal=[Quantity]*[DiscountRate])
Can anyone tell me how to fix this statement?
Pretty much Im trying to state that IF the Discount Rate is equally to Zero, than Subtotal is equal to Quantity * Rate, Otherwise, Subtotal is equal to Quantity * Discount Rate
Make Sence? I hope so. Thanks for the help