Solved

disable mousewheel to navigate through records

Posted on 2002-04-05
7
340 Views
Last Modified: 2011-10-03
Hi,

i've got some annoying problem in access whenever u scroll with a mousewheel access goes to the next or previous record depending on the direction u scrolled, is there a way to disable this ? cause it's very anoying and in some cases u move the wheel without knowing it and ure changing values wich u didn't want to change

please hemp tnx
0
Comment
Question by:joyrider
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 9

Expert Comment

by:Volibrawl
ID: 6920966
listening....
0
 
LVL 54

Expert Comment

by:nico5038
ID: 6921358
0
 
LVL 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 25 total points
ID: 6923752
Also check out the following MSKB article:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q278379

Jim.
0
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
LVL 54

Expert Comment

by:nico5038
ID: 7102403
for joyrider

No comment has been added for the last two months.
So it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
 - Answered by: JDettman  
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7120114
Per recommendation, force-accepted.

Netminder
CS Moderator
0
 

Expert Comment

by:apriori
ID: 7244684
The solution presented here seems to be the accepted solution web wide (a dll or class module that uses the windows API). I have implemented a simple solution that seems to be working well and would like to share it to 1) discover any unexpected problems OR 2) hopefully discover this is the solution we are looking for.

Here is the code I placed in the mousewheel event of the form:

Private Sub Form_MouseWheel(ByVal Page As Boolean, ByVal Count As Long)
If Count < 0 Then
    Me.Recordset.MoveNext
Else
    Me.Recordset.MovePrevious
End If
End Sub

There is a flicker but the recordset pointer stays put. Hope this helps.

Cheers,
John Andrew Morrison
0
 
LVL 58
ID: 7244805
John,

  It's a workable technique, but has the drawback of firing off all the events (Before and AfterUpdate if the record is dirty, and OnCurrent).  Using the Win API avoids all of those issues.

FWIW, here's a link to a site with a DLL and sample database that makes it all pretty easy to handle:

http://www.lebans.com/mousewheelonoff.htm

HTH,
Jim.

0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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 specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

688 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