S
sheree.hemphill
I would like to completely disable the mousewheel from scrolling
through records within an Access 2003 database form (there are many
forms within this database, all of which use tab controls, and all of
which I would like the mousewheel disabled).
I came across MouseHook.dll from the following url:
http://www.lebans.com/mousewheelonoff.htm
As suggested on that page, I placed a copy of the MouseHook.dll in the
same location as my access mdb file. I then placed the following code
in the form load event of one of my forms:
Private Sub Form_Load()
'TURN OFF MOUSE WHEEL:
Dim blRet As Boolean
blRet = MouseWheelOFF
End Sub
The form loads with no error, but when I use the mousewheel, it still
is actively scrolling through records (I don't want it to do anything
at all).
I initially tried in within the form load event of my Switchboard
form, since I ultimated would like it to carry through across all
forms used in this db, however, when that didn't seem to disable the
mousewheel, I moved it just into a specific form to see if I had any
better luck - unfortunately, it doesn't work in either location.
Any ideas on what I might be doing wrong?
through records within an Access 2003 database form (there are many
forms within this database, all of which use tab controls, and all of
which I would like the mousewheel disabled).
I came across MouseHook.dll from the following url:
http://www.lebans.com/mousewheelonoff.htm
As suggested on that page, I placed a copy of the MouseHook.dll in the
same location as my access mdb file. I then placed the following code
in the form load event of one of my forms:
Private Sub Form_Load()
'TURN OFF MOUSE WHEEL:
Dim blRet As Boolean
blRet = MouseWheelOFF
End Sub
The form loads with no error, but when I use the mousewheel, it still
is actively scrolling through records (I don't want it to do anything
at all).
I initially tried in within the form load event of my Switchboard
form, since I ultimated would like it to carry through across all
forms used in this db, however, when that didn't seem to disable the
mousewheel, I moved it just into a specific form to see if I had any
better luck - unfortunately, it doesn't work in either location.
Any ideas on what I might be doing wrong?