prevent mouse wheel scrolling on a form

T

tim johnson

I am trying to prevent the user from using the mouse
scroll wheel to scroll through the records on a form in
Accesss 2003.

Private Sub Form_MouseWheel(ByVal Page As Boolean, ByVal
Count As Long)

If Page = True Then

DoCmd.GoToRecord , , acPrevious
End If
End Sub

If the page =true then you have moved to a new record so
the Docmd line should take you back to the previous
record you were on but it is not working.

Kindly help

Thanks

tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top