D
DS
I tried to have this coded properly. It seems to returning all of the
correct answer but one never knows! Could someone please look at my
parentheses to see if they are correct.
Thank you
DS
Select Case Me.TxtCase
Case 1
Me.TxtAnswer = Qty * Price
Case 2
Me.TxtAnswer = (Qty * Price) * Tax
Case 3
Me.TxtAnswer = Qty * Price * (1 + Tax)
Case 4
Me.TxtAnswer = (Qty * Price) * Percent Discount
Case 5
Me.TxtAnswer = (Qty * Price) * (1 - Percent Discount)
Case 6
Me.TxtAnswer = Qty * Dollar Discount
Case 7
Me.TxtAnswer = Qty * (Price - Dollar Discount)
Case 8
Me.TxtAnswer = (Qty * Price) - (Tax * (Qty * Price))
Case 9
Me.TxtAnswer = Tax * (Qty * Price)
Case 10
Me.TxtAnswer = Qty * Price
Case 11
Me.TxtAnswer = (Qty * Price - (Tax * Qty * Price)) * Percent
Discount
Case 12
Me.TxtAnswer = (Qty * Price - (Tax * Qty * Price)) * (1 -
Percent Discount)
Case 13
Me.TxtAnswer = Qty * Dollar Discount
Case 14
Me.TxtAnswer = (Qty * Price - (Tax * Qty * Price)) - Qty *
Dollar Discount
End Select
correct answer but one never knows! Could someone please look at my
parentheses to see if they are correct.
Thank you
DS
Select Case Me.TxtCase
Case 1
Me.TxtAnswer = Qty * Price
Case 2
Me.TxtAnswer = (Qty * Price) * Tax
Case 3
Me.TxtAnswer = Qty * Price * (1 + Tax)
Case 4
Me.TxtAnswer = (Qty * Price) * Percent Discount
Case 5
Me.TxtAnswer = (Qty * Price) * (1 - Percent Discount)
Case 6
Me.TxtAnswer = Qty * Dollar Discount
Case 7
Me.TxtAnswer = Qty * (Price - Dollar Discount)
Case 8
Me.TxtAnswer = (Qty * Price) - (Tax * (Qty * Price))
Case 9
Me.TxtAnswer = Tax * (Qty * Price)
Case 10
Me.TxtAnswer = Qty * Price
Case 11
Me.TxtAnswer = (Qty * Price - (Tax * Qty * Price)) * Percent
Discount
Case 12
Me.TxtAnswer = (Qty * Price - (Tax * Qty * Price)) * (1 -
Percent Discount)
Case 13
Me.TxtAnswer = Qty * Dollar Discount
Case 14
Me.TxtAnswer = (Qty * Price - (Tax * Qty * Price)) - Qty *
Dollar Discount
End Select