N
Natalie
Hi - I am trying to create a query that will calculate the
commission on a sale price, the commission is dependant on
whether the price is over £2000 or not. If it is the
commission is 15% up to £2000 and 10% over it, otherwise
it is just 10%. I think the code for this calculation is
as shown below but I have no idea how to create this
field - can I even do it in a query? I tried to do it in
a form on the after update property of the price box but
it keeps changing the commission all records rather than
allowing different values for different sales. Can anyone
help?
I used this code in my form!:
If [HammerPrice] >= 2000 Then
[Comm] = ([HammerPrice] / 10) + 300
Else
[Comm] = [HammerPrice] * 0.15
End If
Thanks - Natalie
commission on a sale price, the commission is dependant on
whether the price is over £2000 or not. If it is the
commission is 15% up to £2000 and 10% over it, otherwise
it is just 10%. I think the code for this calculation is
as shown below but I have no idea how to create this
field - can I even do it in a query? I tried to do it in
a form on the after update property of the price box but
it keeps changing the commission all records rather than
allowing different values for different sales. Can anyone
help?
I used this code in my form!:
If [HammerPrice] >= 2000 Then
[Comm] = ([HammerPrice] / 10) + 300
Else
[Comm] = [HammerPrice] * 0.15
End If
Thanks - Natalie