A
Anthony Viscomi
Here is an excerpt from my code:
Dim intCalcMin As Integer
If Me.Pr_Type.Value = 2 And Me.TxtMinPriceCalc < Me.Min_Price Then
intCalcMin = Me.Min_Price.Value * Me.PctTotal.Value
Me.txtHolder.Value = intCalcMin + Me.Min_Price
Me.txtSubTotal.Value = Me.txtHolder.Value * Me.Quantity.Value
End If
My problem is that the variable (intCalcMin) seems to be rounding the
number.
Example:
Min_Price = 40.00
PctTotal = -0.09
thus the intCalcMin should = -3.6, but it keeps showing -4.0
Any ideas?
Thanks in advance!
Anthony Viscomi
Dim intCalcMin As Integer
If Me.Pr_Type.Value = 2 And Me.TxtMinPriceCalc < Me.Min_Price Then
intCalcMin = Me.Min_Price.Value * Me.PctTotal.Value
Me.txtHolder.Value = intCalcMin + Me.Min_Price
Me.txtSubTotal.Value = Me.txtHolder.Value * Me.Quantity.Value
End If
My problem is that the variable (intCalcMin) seems to be rounding the
number.
Example:
Min_Price = 40.00
PctTotal = -0.09
thus the intCalcMin should = -3.6, but it keeps showing -4.0
Any ideas?
Thanks in advance!
Anthony Viscomi