Solved

disable mousewheel to navigate through records

Posted on 2002-04-05
7
336 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
7 Comments
 
LVL 9

Expert Comment

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

Expert Comment

by:nico5038
ID: 6921358
0
 
LVL 57

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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
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 57
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
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…

856 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