Form.MouseWheel Event (Access)
Occurs when the user rolls the mouse wheel in Form View, Split Form View, Datasheet View, Layout View, PivotChart View, or PivotTable View.
Syntax
식 .MouseWheel(Page, Count)
식 A variable that represents a Form object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
Page |
필수 |
Boolean |
True if the page was changed. |
Count |
필수 |
Long |
The number of lines by which the view was scrolled with the mouse wheel. |
Example
The following example demonstrates the syntax for a subroutine that traps the MouseWheel event.
Private Sub Form_MouseWheel( _
ByVal Page As Boolean, ByVal Count As Long)
If Page = True Then
MsgBox "You've moved to another page."
End If
End Sub