no scroll

G

Guest

Hi,

In the form I have data for each individual. we can do page up/down, or use
vertical scroll bar to move between pages. But to move between records..we
can use nav bar already on the bottom of the form or create our own buttons.
But if anyone is using scroll button on the mouse (the middlw on between
right and left click button on the mouse)..it moves from one record to the
next. How can we lock the scroll on the mouse so that one has to use nav bars
in order to move between records?

Thanks in advance.
 
D

Dirk Goldgar

Anna said:
Hi,

In the form I have data for each individual. we can do page up/down,
or use vertical scroll bar to move between pages. But to move between
records..we can use nav bar already on the bottom of the form or
create our own buttons. But if anyone is using scroll button on the
mouse (the middlw on between right and left click button on the
mouse)..it moves from one record to the next. How can we lock the
scroll on the mouse so that one has to use nav bars in order to move
between records?

Thanks in advance.

It takes a bit of coding and a helper utility. See:

www.lebans.com/mousewheelonoff.htm
 
G

Guest

Hi Dirk,
I tried to put following code on the command button but I am getting this
error: "sub or function not defined"

Private Sub Command14_Click()
' Turn the MouseWheel Off
Dim blRet As Boolean
blRet = MouseWheelOFF (false)
End Sub

I also tried with code blRet=MouseWheelOFF ..without false..then I am not
getting any error but its not working.

If you could give me some help on this I would appreciate it. Thanks
 
D

Dirk Goldgar

Anna said:
Hi Dirk,
I tried to put following code on the command button but I am getting
this error: "sub or function not defined"

Private Sub Command14_Click()
' Turn the MouseWheel Off
Dim blRet As Boolean
blRet = MouseWheelOFF (false)
End Sub

I also tried with code blRet=MouseWheelOFF ..without false..then I am
not getting any error but its not working.

If you could give me some help on this I would appreciate it. Thanks

Did you import the module "modMouseHook" into your database from the
sample database? Did you copy the MouseHook.dll file into either your
Windows\System folder or the folder where your database is located?
 
G

Guest

Thank you so much Dirk. I forgot to copy module into my database. Once I did
that..its wroking great. Thanks again. I really appreciate your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top