Solved

Disabling and Enabling the Mouse Scroll Wheel

Posted on 2008-06-12
6
1,293 Views
Last Modified: 2013-11-28
I'm wondering if anyone knows how I can disable the mouse scroll to prevent users from scrolling into another record in a form, but still allow scrolling within large text boxes or combo boxes on the form.  I've tried the information provided in the following link to disable the scrolling function, which is great, but I would really like to be able to scroll through text boxes, etc. on the same form.

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q278/3/79.asp&NoWebContent=1

Any help or suggestions would be greatly appreciated!

Earl
0
Comment
Question by:earlhead
  • 3
  • 3
6 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
ID: 21771176

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

The Lebans MWH (Mouse Wheel Hook) uses a DLL that requires **NO** Windows registration and no VBA Reference needs to be set ... just needs to be in the same directory as the app, or optionally the Windows System folder.

The Lebans MWH is structured such that, it only needs to be called once per MDB, ie once activated, it is 'global' for that MDB.  There is also an option such that it can be global for all mdb's loaded on a given system, if desired.

So ... my application start-up code activates the MWH ... and my shut-down code deactivates it ... rather than doing it on a form by form basis.  I also added an option to my custom menu under Tools ... wherein the user can temporarily turn on/off the MWH ... at any given moment ... just to cover any special cases that ma arise.

Lebans has it ALL figured out and his MWH has evolved over the years. It takes into account may different cases and works very well.   And here is the good news:
It's 100% free !!  

mx
0
 

Author Comment

by:earlhead
ID: 21771579
So how would I go about activating or loading the MWH?
0
 
LVL 75
ID: 21771613
All the instructions are included in the sample MDB - with examples, etc.

mx
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:earlhead
ID: 21771875
Think I've been staring at this screen for far too long at this point, as I didn't even think to look at the examples to see how they were set up.

In any regard though, I have myself straightened away now and so I thank you for the help!  It is greatly appreciated!

Earl
0
 
LVL 75
ID: 21771935
btw ... I didn't mean to not help on that, but I've been using it for so long ... I don't remember all the fine details. Fortunately, his examples are pretty straight forward ... and man, he has cover just about every conceivable case.

Look around on the site ... LOADS of excellent free, cool stuff.  A virtual goldmine of apps.

mx
0
 

Author Comment

by:earlhead
ID: 21771985
No worries...once I looked through the examples it was all straightforward!  And I am actually looking through some of the other stuff on the same site, definitely a lot of good stuff there...thanks for pointing the site out!

Earl
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

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…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

862 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

30 Experts available now in Live!

Get 1:1 Help Now