Click to See Complete Forum and Search --> : InputBox function


kazooie21
October 12th, 1999, 11:29 PM
I want the precentage raise to be (.05)and multiply it in the form. I've already entered the following code
[vbcode]
Const conPrompt As String = "Enter percentage raise"
Const conTitle As String = "Precentage Raise"
Dim intRaise As Integer
intRaise = Val(InputBox("Enter precentage raise", "Raise"))
End Sub

kazooie21

Reid Robbins
October 15th, 1999, 02:35 PM
One problem, here. If your variable intRaise is declared as Integer, there is no way for it to contain a value .05. Declare the variable as Single or Double.

Reid Allen Robbins
2205 E. Teton Blvd.
Green River, WY 82935