Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2004
    Posts
    277

    Unanswered: On right mouse click?

    Anyone know how to set off code if the right mouse button is clicked. I would imagine the code goes in the On Mouse Down,,,,

  2. #2
    Join Date
    Nov 2003
    Location
    LONDON
    Posts
    238
    In the mouse up event use code like:

    Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = acRightButton Then
    ' Do something here on a right click
    End If
    End Sub
    Justin

  3. #3
    Join Date
    Dec 2004
    Posts
    277
    thanks

    your help with that loop was great I am not able to convert tables from access into QuickBooks with no problem. Thanks again for all your help

  4. #4
    Join Date
    Dec 2004
    Posts
    277
    one quick thing.. when it does the right click it opens up the right click menu, how do I disable that?

  5. #5
    Join Date
    Feb 2004
    Location
    Canada
    Posts
    133
    Quote Originally Posted by DackJaniels
    one quick thing.. when it does the right click it opens up the right click menu, how do I disable that?
    In Access XP you can turn it off by going to Tools/Startup and un-check "Allow Default Shortcut Menus". You have to re-launch the file to see the effect.

  6. #6
    Join Date
    Nov 2003
    Location
    LONDON
    Posts
    238
    Another solution is to turn it off for the form rather then globally. On the form property sheet or using VBA set the shortcut menu property to false (Me.ShortcutMenu = False)

  7. #7
    Join Date
    Dec 2004
    Posts
    277
    thank you sir once again.. problem solved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •