Help with expression in a calculated field
Hello,
I need to create a calculated field in a query that calculates a commission, based on a particular [manufacturer] and a [dollar amount] sold. If the [dollar amount] is between x and y and the [manufacturer] is A,B,C,D the commission is a fixed amount. Or if the [dollar amount] is >Z and the [manufacturer] is A, B,C,D the commission is a fixed amount. Or if the [dollar amount] is >Z and the [manufacturer] is E,F,G,H the commission is a fixed amount. All three scenarios need to be in the same expression.
I think I need to do something with the iif and in operators, but I haven't been able to come up with the correct expression.
Can someone help?
Hello,
I need to create a calculated field in a query that calculates a commission, based on a particular [manufacturer] and a [dollar amount] sold. If the [dollar amount] is between x and y and the [manufacturer] is A,B,C,D the commission is a fixed amount. Or if the [dollar amount] is >Z and the [manufacturer] is A, B,C,D the commission is a fixed amount. Or if the [dollar amount] is >Z and the [manufacturer] is E,F,G,H the commission is a fixed amount. All three scenarios need to be in the same expression.
I think I need to do something with the iif and in operators, but I haven't been able to come up with the correct expression.
Can someone help?