DISABLE Mousewheel on form?

G

Guest

I need to disable the use of the mousewheel on a form in Access2002. Right
now, it moves between records when rolled. I need to have it either not do
that, or do nothing at all. Any ideas would be most appreciated.

Thanks!
 
G

Guest

Okay, I downloaded the example and the dll. However, the one function that I
NEED to disable, "Record Navigation," appears to be unaffected by this
library. So although it's a nice fix, it doesn't fix the part that I need
done, that of disallowing record navigation.

Thanks though. I do appreciate your efforts.
 
G

Guest

Dennis..

Did you make sure that you followed it all the way through? I say this b/c
missing the Module that has to be added to your database will prevent it all
from working the way it should. I envision that you have a form that rolls
through all of the records when you use the mousewheel and this solution
fixes that. I have this used on a form that contains a subform and it allows
the scroll wheel there and does not scroll the records in my tab control. I
cannot imagine how this failed for you.

Let us know.
Jim
 
G

Guest

In the example itself, the following text is shown:

The MouseWheel is turned OFF except for ListBox controls, TextBox controls
with ScrollBars and the Record Navigation control

I figure that the guy that wrote it would know what he's talking about. He
has explicitly (near as I can tell) excluded record navigation from being
stopped.
 
G

Guest

I am not sure what to tell you on this issue. I know that many of the users
in the community use this without any problems. I had some issues when I
first used it but found where I made some simple mistakes. Make sure you
have the following in the load event procedure:

Private Sub Form_Load()
' Turn the MouseWheel Off

Dim blRet As Boolean
blRet = MouseWheelOFF(True)

End Sub

Outside of that.. I am not able to help any further. I am a total N00bie
when it comes to Access.

Jim
 
B

BruceM

Something that may not be clear from the documentation is that modMouseHook
needs to be copied from the sample database to your database. That is what
the previous posting tried to explain, I think.
Once you have done that, give it a try. I don't quite understand the
message that suggests the Record Navigation control is still active, but I
think it means that if you click directly into the built-in record counter
you can use the mouse to scroll.
I can attest that the utility works. The others who responded said the
same. We all understood the question. As I mentioned, the text you quoted
is a bit enigmatic.
 
G

Guest

Bruce..

Well said.. That is what I was attempting to stress in the first response.
The module has to be copied from the sample into the database where this is
used. My last response was making sure he had the module called on the
loading of the form to make everything work right. =)

Thanks,
Jim
 

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