B
BigJohn
The following code is attached to the control *Qty*
Private Sub Qty_AfterUpdate()
Me.TotalFirst = Me.Qty * Me.Price
Me.TotalSecond = Round(Me.TotalFirst, 2)
Me.Command0.SetFocus
End Sub
**Question: when using this code, why would the number 15.485*1 end up as
15.48 and the number 84.915*1 end up as 84.92? It appears that the rounding
function is not rounding the first result and is rounding the second result.
Any ideas why that is happening? All numbers are defined in the table as
Number, Single, 3 decimal places. This is driving me and my client nuts.
Thanks in advance for any help.
Private Sub Qty_AfterUpdate()
Me.TotalFirst = Me.Qty * Me.Price
Me.TotalSecond = Round(Me.TotalFirst, 2)
Me.Command0.SetFocus
End Sub
**Question: when using this code, why would the number 15.485*1 end up as
15.48 and the number 84.915*1 end up as 84.92? It appears that the rounding
function is not rounding the first result and is rounding the second result.
Any ideas why that is happening? All numbers are defined in the table as
Number, Single, 3 decimal places. This is driving me and my client nuts.
Thanks in advance for any help.