How can i disable mouse scroll wheel in access2003?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moonrb
    New Member
    • Nov 2013
    • 23

    How can i disable mouse scroll wheel in access2003?

    How can i disable mouse scroll wheel in access2003?
  • Patrickwwevans
    New Member
    • Nov 2013
    • 8

    #2
    I hope you can say you have already googled for this little snipit but I found this on the first try. Give it a shot and see what happens.

    Code:
    Private Sub Form_Open(Cancel As Integer)
         Static MouseHook As Object
         Set MouseHook = NewMouseHook(Me)
    End Sub
    Last edited by zmbd; Nov 19 '13, 03:44 PM. Reason: [z{fixed code tags}]

    Comment

    • zmbd
      Recognized Expert Moderator Expert
      • Mar 2012
      • 5501

      #3
      Patrickwwevans:
      That is code from and article that actually requires a much more complex SubClass to be written and will not stand by itself:A new method for disabling the Mouse Scroll Wheel in Access forms

      MoonRB:
      You will find that this is not an easy thing to do.
      Can you explain why you need to do this?

      Comment

      • ADezii
        Recognized Expert Expert
        • Apr 2006
        • 8834

        #4
        As indicated by zmbd, you can Enable/Disable Mouse Scroll Wheel but it involves several API Calls as well as an external *.DLL to do so. This is the Method that I use occassionally.

        Comment

        Working...