I am experiencing something with my forms that I do not know how to stop. On the forms when you scroll with the mouse scroll wheel it rolls to a new record... Am I missing how to stop this?
Form issues
Collapse
X
-
Tags: None
-
I hate that too. If you do a search on this forum and/or google you will find that a lot of people have the same problem. There is code to disable the mouse wheel completely from within access, and when you do the search you will find it pretty easily. But as far as I can tell there's no way to keep the mouse wheel enabled, and yet have it not scroll through the records.Originally posted by alphaomega3I am experiencing something with my forms that I do not know how to stop. On the forms when you scroll with the mouse scroll wheel it rolls to a new record... Am I missing how to stop this? -
A gentleman by the name of Stephen Lebans has a sample database that does this and can be downloaded at:
http://www.lebans.com/mousewheelonoff .htm
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, use your FIND feature in Windows to make sure you have the file MouseHook.dll on your PC. You should, it's a standard Windows file. You may have to go into Windows and select "Show hidden files" then run FIND. You need to place a copy of this file in the same folder your database resides in.
And finally, in the first form to load in your db use this code:
[CODE=vb]Private Sub Form_Load()
'Turn off Mouse Scroll
blRet = MouseWheelOFF
End Sub[/CODE]Comment
Comment