Access 97-2003 Disable Mouse Scroll

A

Abe Katz

Hello,
Can you please tell me an easy and simple way, how to disable the mouse
scroll.
Thanks
abe
 
L

Linq Adams via AccessMonster.com

Stephen's beautiful hack, at the link Doug gave, you is really the gold
standard for handling this problem. Here's a quick step-by-step for using it

First, download and unzip the db and take a look. Go into your db and goto

File > External Data > Import

and import the module

modMouseHook

from the sample database. Next make sure you have the included file,
MouseHook.dll

in the same folder your database resides in. The following code needs to run
before the mousewheel will be locked:

Private Sub Form_Load()
'Turn off Mouse Scroll
blRet = MouseWheelOFF
End Sub

If you have one form that always loads first in your db, place the code there.
If the first form to load varies, place the same code in each form.

You should be set now.

Good luck!.
 
L

Lambi000

That worked great for me. I only needed one screen to not allow scrollling.
So on load MouseWhellOFF and on close MouseWheelON. I'm going to use this
all the time now. Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top