Scroll Mouse Record browsing

chemram

New member
Local time
Today, 18:07
Joined
Dec 27, 2000
Messages
6
How can I stop my DB scrolling through records when the wheel on a scroll mouse is used?
 
Hi,
Go in your control pannel and select the mouse, then de-select turn the weel on.
That should do it.

Skip
 
Thanks Skip,

But I was looking for a way just to isolate this function from within Access, so normal mouse functions still exist...
 
chemram,

Sorry I don't have a fix for your problem,
but I found Microsoft's kb article Q192008.
Don't know if you have A97 or A2K, this article is for A97.
Hope it helps

Skip
 
try this
-----------------------------------------

Private Const SPI_SETWHEELSCROLLLINES = 105

Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByRef lpvParam As Any, ByVal fuWinIni As Long) As Long

Private Sub DisableScrolling()
SystemParametersInfo SPI_SETWHEELSCROLLLINES, 0, 0, 0
End Sub

--------------------------------------------------------------------------------

That first 0 after SPI_SETWHEELSCROLLLINES is the number of lines to scroll. Setting it to 0 disables scrolling. The default value is 3, so that's probably what you should set it back to when you want to re-enable the scrolling.

--------------------------------------------------------------------------------

Private Sub EnableScrolling()
SystemParametersInfo SPI_SETWHEELSCROLLLINES, 3, 0, 0
End Sub

-----------------------------------------
-----------------------------------------

I got this from a VB site.Don't know if this will work in access
HTH

Skip
 

Users who are viewing this thread

Back
Top Bottom