انشىء هذه الوحدة النمطية بإسم mod_Mouse_Wheel
Option Compare Database
Public Function DoMouseWheel(frm As Form, lngCount As Long) As Integer
On Error Resume Next
Dim strMsg As String
If (Val(SysCmd(acSysCmdAccessVer)) >= 12#) And (frm.CurrentView = 1) And (lngCount <> 0&) Then
RunCommand acCmdSaveRecord
RunCommand IIf(lngCount < 0&, acCmdRecordsGoToPrevious, acCmdRecordsGoToNext)
DoMouseWheel = Sgn(lngCount)
End If
DoCmd.CancelEvent
Response = False
End Function
ثم ضع هذا الكود فى التقرير على حدث on Mouse Wheel
Private Sub Report_MouseWheel(ByVal Page As Boolean, ByVal Count As Long)
'Call DoMouseWheel(Me, Count)
End Sub
و بالتوفيق انشاء الله