In a form I need the number in a text-box increase/decrease it's value continuously when the Command1 or the Command2 button are pressed.
I had try the Command1_MouseDown event but the number can change after every mouse-click. I had to click and click to increase/decrease the number. Below is the codes.
Private Sub Command1_MouseDown(Button As Integer, _
Shift As Integer, X As Single, Y As Single)
If Me.text1.Value < 200 Then
Me.text1.Value = Me.text1.Value + 1
End If
End Sub
I need the number change continuously after one press.
I had try the Command1_MouseDown event but the number can change after every mouse-click. I had to click and click to increase/decrease the number. Below is the codes.
Private Sub Command1_MouseDown(Button As Integer, _
Shift As Integer, X As Single, Y As Single)
If Me.text1.Value < 200 Then
Me.text1.Value = Me.text1.Value + 1
End If
End Sub
I need the number change continuously after one press.