Mouse wheel work around

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

Guest

All-

I have been struggling with the need to turn off the mouse wheel so that
users are only able to add a single record to a form. I know there is an
add-in or something you can download to turn the mouse wheel off, but the
thought of installing it on every computer the database is used on is
daunting. I think I found a good cheat, though. On the form's "on current
property" put the following single line of code

docmd.gotorecord , acFirst

So far it has worked for me, but please let me know if you forsee any
problems with this solution. Thanks.

Adam
 
Nothing immediately comes to mind, but I personally would not rely on such
an approach to prevent wheel scrolling.

Stephen Lebans has a very simple tool for turning wheel off and on. Once you
code the front end to use it, all you need do is put a single ".dll" file in
the folder containing the database on each PC. No need to register the .dll
file either. I use this in my client setups; once copied onto the PC, it
remains.

See www.lebans.com/mousewheelonoff.htm
 
Back
Top