Solved

Mouse Wheel event

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
zero pad a access form field 2 15
Programmer 14 47
Any Way to Print an Import Spec? 3 29
ACCESS 2010 - VBA - generic Table Open Button - Code 7 20
This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
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…

786 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