Solved

Mouse Wheel event

Posted on 2016-10-27
2
23 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now