I have a continuous form, (a sub form on a main form).
I run the following code on the form to simply work out the discount into two fields into the form, "Discount" and "CalcDisc"
One shows how much money is saved, and one shows the new total...
simple right?
wrong?
For some reason, and I blame the continuous form,
it only does this for the top line. Maybe its the load event?
for example:
Price Disc/Pm Discount CalcDisc
£10.00 10 £1.00 £9.00
£11.00 10
£12.00 10
It's really annoying!?
I run the following code on the form to simply work out the discount into two fields into the form, "Discount" and "CalcDisc"
Code:
Private Sub Form_Load()
Me.Discount = Nz(Me.Price * (Me.DiscPm / 100), 0)
Me.CalcDisc = Nz(Me.Price - Me.Discount, 0)
End Sub
One shows how much money is saved, and one shows the new total...
simple right?
wrong?
For some reason, and I blame the continuous form,
it only does this for the top line. Maybe its the load event?
for example:
Price Disc/Pm Discount CalcDisc
£10.00 10 £1.00 £9.00
£11.00 10
£12.00 10
It's really annoying!?