belgravia
Technical User
- Feb 1, 2005
- 2
I am setting up a query within a large contract database that tracks commissions. Within the query, I want to do some calculations based on 3 fields - Total Commission (which is the 5% of the purchase price), Co-op Broker? (a yes/no check box) and Co-op Commission. Co-op commission is 1/2 of the total commission minus $100. However, if Co-op Broker? is "no", then the co-op commission is $0. Right now my statement in the query is -
Coop Commission: IIf([Co-op Broker?]="No","$0.00",[Total
Commission]/2-100)
Right now, when I try to view the query, I get an "Empty Parameter box asking for a field that doesn't exist, "Total." If I click OK through this box, the resulting query will show the total commission, but the co-op commission will be empty, regardless of the state of the "Co-op Broker?" field. What is wrong with my If statement?
Thanks!
Mark
Coop Commission: IIf([Co-op Broker?]="No","$0.00",[Total
Commission]/2-100)
Right now, when I try to view the query, I get an "Empty Parameter box asking for a field that doesn't exist, "Total." If I click OK through this box, the resulting query will show the total commission, but the co-op commission will be empty, regardless of the state of the "Co-op Broker?" field. What is wrong with my If statement?
Thanks!
Mark