Solved

Mouse Wheel event

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

911 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

21 Experts available now in Live!

Get 1:1 Help Now