Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub SpinButton4_Updated(Code As Integer)
'MsgBox Me.SpinButton4
If IsDate(Me.Text5) Then
Me.Text5 = CDate(Me.Text5) + Me.SpinButton4
End If
Me.SpinButton4.Value = 0
End Sub
Private Sub Text5_KeyPress(KeyAscii As Integer)
If KeyAscii = 43 Then
Me.Text5.Text = CDate(ActiveControl.oldValue) + 1
DoCmd.CancelEvent
ElseIf KeyAscii = 45 Then
Me.Text5.Text = CDate(ActiveControl.oldValue) - 1
DoCmd.CancelEvent
End If
Me.Refresh
End Sub
Well . . . [blue]Bill0722[/blue] didn't ask for a spin button, but . . . [blue]+/- control keys of the value![/blue] . . . Ya Think?MajP said:[blue]I would do it with a spin button.[/blue]