A
Anthony Viscomi
How do I add add (+) a % from within an expession?
Example:
$210 + -9% (negative 9%)=
Thanks,
Anthony
Example:
$210 + -9% (negative 9%)=
Thanks,
Anthony
'69 Camaro said:Hi, Anthony.
Perhaps this example will help:
Me!txtDiscount.Value = Me!txtBasePrice.Value * (1.00 - (Me!txtFrontPct.Value
/ 100.00))
... where txtBasePrice is the name of the text box displaying the base price
($210.00) and txtFrontPct is the name of the text box displaying the
percentage that you need to subtract from the base price (9%), and
txtDiscount is the name of the text box displaying the amount calculated
($191.10).
HTH.
Gunny
See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.
(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)
Anthony Viscomi said:I have the following code:
Dim intBaseTotal As Integer
Dim intDiscountTotal As Integer
Dim intFilter As String
intFilter = Me.ID
intBaseTotal = DSum("[Base_Price]", "tbl_OrderB", "[ID_B] =" &
[intFilter])
intDiscountTotal = intBaseTotal * (1# - (Me.Front_.Value / 100#))
Me.txtBasePriceTotal = intDiscountTotal
The intBaseTotal = $1465 and the Front_.Value = -9%..for some reason the end
result (intDiscountTotal) = $1466, which isn't correct. Any thoughts?
Anthony Viscomi said:Great...Thanks!
message news:%[email protected]...