Results 1 to 9 of 9

Thread: disable mouse

  1. #1
    Join Date
    Aug 2004
    Posts
    178

    Unanswered: disable mouse

    is it possable to disable the mouse when a form opens

  2. #2
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    Probably... but WHY??
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

  3. #3
    Join Date
    Aug 2004
    Posts
    178
    i have a form which the user fills out on exit of the last text box it records all the data they put in. once there in the last box if they entered anything wrong they try to click on where they went wrong and then the database craces. the backend has to be repered

  4. #4
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    I would fix the issue causing the crash, rather than disabling the mouse, because even without a mouse, tabbing through controls and pressing enter (or space bar, depending on control type) can trigger similar click events.

    Try narrow down which control(s) are causing the problem and then post what you suspect to be the code that is causing this!
    George
    Home | Blog

  5. #5
    Join Date
    Jun 2002
    Location
    Mpls/St.Paul area
    Posts
    303

    preventing mouse scroll - non trivial

    ACC2000: How to Detect and Prevent the Mouse Wheel from Scrolling Through Records in a Form

    This is a non-trivial exercise. But Microsoft has an answer.

    http://support.microsoft.com/kb/278379
    John
    This is the day the Lord has made, I will rejoice and be glad in it.

  6. #6
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    disabling the mouse hides the symptoms, as Geogev susggest, fixing the problem is the more important issue

  7. #7
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    Definitely. Don't put a band-aid on a broken leg.

    If you succeeded, then what would happen is the poor user would be so annoyed... one little mistake and they can do nothing but save it? Bad idea.
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

  8. #8
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926
    Check the codebank. There are examples on how to disable the mouse scrolll wheel which you can maybe expand upon to disable the mouse itself.
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

  9. #9
    Join Date
    Aug 2004
    Posts
    178
    Thanks for your replys.

    the problem only accours when they click on any other textbox on the form.

    this is a sales form once they enter the last textbox a lot of code is run to generate the sales. then when they leave the text box it prints the results but if they click on any other text box it freese and they cant do anything.

    the only way out is Ctrl Alt Del.

Posting Permissions

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