Results 1 to 4 of 4
  1. #1
    Terrie is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2011
    Posts
    2

    Angry Mouse Wheel Off

    Hi



    I am trying to turn the mouse wheel off in access 2003 on my forms. The code I have is below, but it doesn't work - Compile Error - Sub or Function not defined

    Thanks for any help I can get

    Private Sub Form_MouseWheel(ByVal Page As Boolean, ByVal Count As Long)
    ' Turn the MouseWheel Off
    Dim blRet As Boolean
    ' Call our MouseHook function in the MouseHook dll.
    ' Please note the Optional GlobalHook BOOLEAN parameter
    ' Several developers asked for the MouseHook to be able to work with
    ' multiple instances of Access. In order to accomodate this request I
    ' have modified the function to allow the caller to
    ' specify a thread specific(this current instance of Access only) or
    ' a global(all applications) MouseWheel Hook.
    ' Only use the GlobalHook if you will be running multiple instances of Access!
    blRet = MouseWheelOFF(False)
    End Sub

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    here is the guru on this topic:
    http://www.everythingaccess.com/tuto...n-Access-forms

    hope this helps.

  3. #3
    Terrie is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2011
    Posts
    2
    Thank you very, very much

  4. #4
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    b.t.w. in 07+ the mousewheel is auto off in single record forms, and on in continuous forms. just fyi for others that might follow this post.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. On Mouse Move, Flickering
    By 95DSM in forum Programming
    Replies: 1
    Last Post: 01-04-2011, 08:35 AM
  2. Show Mouse Position
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 08-31-2010, 04:37 AM
  3. Replies: 1
    Last Post: 06-02-2009, 04:44 PM
  4. Mouse click to open form
    By darryl.charles in forum Programming
    Replies: 0
    Last Post: 09-05-2008, 10:33 AM
  5. Mouse Pointer Changes
    By BernardKane in forum Programming
    Replies: 2
    Last Post: 06-28-2006, 04:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums