Solved

Mouse Wheel event

Posted on 2016-10-27
2
31 Views
Last Modified: 2016-10-28
In a subform on a main form I am trying to prevent the mouse wheel allowing the user to move to other records. I have tried this but it does not work.

Private Sub Form_MouseWheel(ByVal Page As Boolean, ByVal Count As Long)
If Page = True Then
        DoCmd.GoToRecord , AcRecord = acPrevious
End If
End Sub

I am trying to disable the mouse wheel
Any ideas? Access version 2002
0
Comment
Question by:DatabaseDek
2 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 41862384
Wayne over at EverythingAccess.com has a good solution to this:

http://www.everythingaccess.com/tutorials.asp?ID=A-new-method-for-disabling-the-Mouse-Scroll-Wheel-in-Access-forms

There is a downloadable demo there that shows how to implement it.
0
 

Author Closing Comment

by:DatabaseDek
ID: 41863463
Excellent solution. Quick and easy!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question