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.
[Green]
'Global declarations should be here before the code
'This enum is for clarifying the code below.[/Green]
[blue]Private Enum[/blue] wsTrigger
MyWheel = 1
NotTheWheel = 2
[blue]End Enum[/blue]
[blue]Private[/blue] mWheel [blue]As Boolean[/blue]
[blue]Private[/blue] ValidationTrigger [blue]As[/blue] wsTrigger
[green]
'End of global declarations [/green]
[blue]Private Function[/blue] WheelSpin() [blue]As Integer[/blue]
WheelSpin = mWheel
[blue]Select Case[/blue] ValidationTrigger
[blue]Case[/blue] NotTheWheel
mWheel = [blue]False
End Select
End Function
Private Sub[/blue] Form_Error(DataErr [blue]As Integer[/blue], Response [blue]As Integer[/blue])
[blue]If[/blue] Screen.ActiveControl.Name = "UnboundTextBox" [blue]Then[/blue]
Response = acDataErrContinue
[blue]End If
End Sub
Private Sub[/blue] Form_MouseWheel([blue]ByVal[/blue] Page [blue]As Boolean[/blue], [blue]ByVal[/blue] Count [blue]As Long[/blue])
[blue]On Error GoTo[/blue] Sub_Err
mWheel = True
ValidationTrigger = MyWheel
Me.UnboundTextBox.SetFocus
Me.UnboundTextBox.TEXT = " "
Sub_Exit:
ValidationTrigger = NotTheWheel
[blue]Exit Sub[/blue]
Sub_Err:
[blue]Resume[/blue] Sub_Exit
[blue]End Sub[/blue]