
Originally Posted by
Ajax
in your percentdiscount control after update event you put
me.fixeddiscount=me.PercentDiscount*price
in your fixeddiscount control after update event you put
me.PercentDiscount=me.fixeddiscount/price
in your price control after update event you put
percentdiscount_afterupdate
which will recalculate the fixed discount. If on the other hand you want the fixed discount to remain the same and recalculate the percentage (clearly you can only do one or the other) you put
fixeddiscount_afterupdate
calling the sub just means you are reusing the code - if at some point in the future you wanted to change the calculation, you only have to do it in one place