By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,476 Members | 1,529 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,476 IT Pros & Developers. It's quick & easy.

Mouse Wheel Scroll Run-Time Error

P: n/a

I am using Access 2000.

I am trying to get the microsoft code to work for stopping the mouse
wheel from scrolling records. It is the code from;en-us;278379
Title "ACC2000: How to Detect and Prevent the Mouse Wheel from
Scrolling Through Records in a Form"

It works ok using their code except when I click on my Exit button.
The code I use is DoCmd.Quit acQuitSaveAll I have not other code in
their except for that line.

After I click on that button I get a Run-time Error 91 for my code in
my form_close() event. The code I have in their that I am using from
Microsoft is clsMouseWheel.SubClassUnHookForm
Set clsMouseWheel.Form = Nothing
Set clsMouseWheel = Nothing

If I using the 'X' in the upper right corner to close Access it is
fine and I don't get the run-time error problem.... It is the oddiest
thing. Please Help!!!!


Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a


Don't it is all too complicated.

Use Mousehook.dll you can download it for nothing it is easy as pie to
call and works.

*** Sent via Developersdex ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.