Mousewheel DLL not functioning

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jl2886
    New Member
    • Mar 2007
    • 83

    Mousewheel DLL not functioning

    Hello. I have downloaded the Mousewheel Dll. I have put it in the same folder as my database(which references a table on a server--not sure if this matters). On the on load of a form, I put the code:
    Code:
    Private Sub Form_Load()
    Dim blRet As Boolean
    blRet = MouseWheelOFF
    End Sub
    The mousewheel is still on? Am I missing something?
  • AccessIdiot
    Contributor
    • Feb 2007
    • 493

    #2
    Originally posted by jl2886
    Hello. I have downloaded the Mousewheel Dll. I have put it in the same folder as my database(which references a table on a server--not sure if this matters). On the on load of a form, I put the code:
    Code:
    Private Sub Form_Load()
    Dim blRet As Boolean
    blRet = MouseWheelOFF
    End Sub
    The mousewheel is still on? Am I missing something?
    You are missing the true/false part. Try this:
    Code:
    Private Sub Form_Load()
    Dim blRet As Boolean
    blRet = MouseWheelOFF(False)
    End Sub

    Comment

    • jl2886
      New Member
      • Mar 2007
      • 83

      #3
      Originally posted by AccessIdiot
      You are missing the true/false part. Try this:
      Code:
      Private Sub Form_Load()
      Dim blRet As Boolean
      blRet = MouseWheelOFF(False)
      End Sub
      it reads an under cursor error when i do the false

      Comment

      • MMcCarthy
        Recognized Expert MVP
        • Aug 2006
        • 14387

        #4
        Originally posted by jl2886
        Hello. I have downloaded the Mousewheel Dll. I have put it in the same folder as my database(which references a table on a server--not sure if this matters). On the on load of a form, I put the code:
        Code:
        Private Sub Form_Load()
        Dim blRet As Boolean
        blRet = MouseWheelOFF
        End Sub
        The mousewheel is still on? Am I missing something?
        Try this ...

        Code:
        blRet = MouseWheelOFF(False, True)

        Comment

        • jl2886
          New Member
          • Mar 2007
          • 83

          #5
          I sitll get an error?
          Originally posted by mmccarthy
          Try this ...

          Code:
          blRet = MouseWheelOFF(False, True)

          Comment

          • MMcCarthy
            Recognized Expert MVP
            • Aug 2006
            • 14387

            #6
            Originally posted by jl2886
            I sitll get an error?
            Where have you put the mousewheel function and have you got the dll in the same folder as the database?

            Comment

            • missinglinq
              Recognized Expert Specialist
              • Nov 2006
              • 3533

              #7
              Your code is correct as originally posted. You've placed the DLL in the same folder as the database, you placed your code in the FormOpen event, but you have said nothing about importing the modMouseHook module from Leban's sample database into your own database. Have you done this?

              Comment

              • jl2886
                New Member
                • Mar 2007
                • 83

                #8
                NO, hahah, I will try that

                Originally posted by missinglinq
                Your code is correct as originally posted. You've placed the DLL in the same folder as the database, you placed your code in the FormOpen event, but you have said nothing about importing the modMouseHook module from Leban's sample database into your own database. Have you done this?

                Comment

                • jl2886
                  New Member
                  • Mar 2007
                  • 83

                  #9
                  Perfect, thanks a million

                  Comment

                  Working...