How to disable scroll feature on mouse.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have searched and found this website:

http://www.lebans.com/mousewheelonoff.htm

But i am not sure how to use it. I tried copying the .dll file into my
windows/system folder, but i am not sure how to input the code into my .mdb
to get it to work. I would like to disable the scroll feature upon opening
the database rather than using a command button. Please advise.
 
Have you imported the module into your database?
Open your database select File... Import and find MouseWheelHook...mdb and
select the Module tab and import that module into your database.

After that... just place MouseWheelOFF in the On Load or On Open event of
the form(s) you want to disable mouse wheel scroll. (No command button
required.)

HTH
 
I now have the module imported into my mdb but am still having problems
getting the MouseWheelOFF to work. When I place that in the On Load or On
Open event, it gives an error stating that there is no such macro or
something along those lines.
 
After i imported the module into my database, i went into the design view of
the form that i would like to disable the scroll feature on, went to the
properties, and typed in MouseWheelOFF on the "On Load" tab. I wasn't sure
that this would work and that speculation was confirmed when i opened the
form and it stated that there was no such macro. Any suggestions.

Thanks again for your help.
 
You need to go to the On Load event, select Event Procedure when the Module
window opens up, type MouseWheelOFF in that window NOT in the Properties On
Load event window.
 
Please remember to follow the instructions. The call to MouseWheelOff must
be placed in the form's LOAD event. Further you must only call this function
ONCE from a SINGLE form, generally the form you open first and close last.
This allows you to place the corresponding call to MouseWheelOn in this
form's Unload event.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
I just decided to go the simple route with:
Private Sub Form_MouseWheel(ByVal Page As Boolean, ByVal Count As Long)
If Me.Dirty Then
DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70
End If
End Sub

I'd rather loose changes than have incorrect or incomplete data enterred in
my database! Foolish users shall do as I tell them! Mu hu hu ha ha haahh!!
 
I have found this thread and up to now it has been MOST helpful. However,
I'm stuck, I'm no programmer at all a simple novice trying to write a
datebase. I read the last message below "You need to go to the On Load
event, select Event Procedure when the Module
window opens up, type MouseWheelOFF in that window NOT in the Properties On
Load event window."
I have tried and tried and it still does not work. I am sure I am the
problem, but need more details to correct. I am using access 2003. I open
the form in design view, then from the form I select Build Event, this is
where I get stuck, what do I do from here. I have a choice of Code, Macro or
Expression builder. BTW, I have followed Lebans instructions too... messed
that up as well, it didn't work either.
Thanks in advance for those with patience for us beginners.
 
Back
Top