lock mouse scroll

  • Thread starter Thread starter Guest
  • Start date Start date
Hi

Does this work for Acess 2000? I can't get it to work on my Database. I have
put the Mouse.DLL file into windows system folder and used the Sample code
but it doesn't seem to work.
 
As far as I know it works for Access 2000.

1. Did you copy the module into the database?
2. Are you using it on a subfrom (I don't believe it works on main forms)

HTH,
Gina Whipp
 
Hi Gina,
forgetting to copy the code module from the sample MDB is a common error.

It works with Subforms but should be initially called from a form's Load
event. The function only needs to be called once, and only once, for the
entire session and will look after all forms in your application.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Stephen,

Thanks for replying (I didn't know it would look after all subforms). I
haven't "heard" back from Kirt84 to know if that's what happened.

Thanks,
Gina Whipp
 
hi

This is still not working. I just want to be able to disable the mouse
scroll on open. I used the following code:

Private Sub Form_Load()
' Turn the MouseWheel Off
'Dim blRet As Boolean
blRet = MouseWheelOFF
End Sub
 
The message it comes up with is "Compile error: Variable not defined". Please
help as VB coding is not my strong point.
 
Did you copy the module from the sample database, as was pointed out as
being necessary?
 
Even if you have copied the module, you've got the Dim blRet line commented
out.

Private Sub Form_Load()
' Turn the MouseWheel Off
Dim blRet As Boolean
blRet = MouseWheelOFF
End Sub
 
Back
Top