Results 1 to 3 of 3
  1. #1
    IMACoolClassic is offline Novice
    Windows 7 32bit Access 2016
    Join Date
    Jul 2016
    Posts
    3

    Disable mouse

    I need to disable the mouse from functioning for a short period of time so that when a user creates an exit event they can't mouse to a different record on a continous form. I have a pop up form that gets populated based on current record. When a user uses the mouse to exit the data point they go to a different record which then the pop is based on that record. Thanks!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    add a module, put this in it:
    Code:
    public Declare Function ShowCursor Lib "user32" (ByVal lShow As Long) As Long
    Turn it on /off
    Code:
    'mouse on
    ShowCursor 1
    
    'off
    ShowCursor 0

  3. #3
    Micron is offline Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    Why not make the popup form modal, then they can't invoke anything else in the database until it closes?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Mouse Move Event - End if Mouse not Hovering
    By Tandem in forum Programming
    Replies: 3
    Last Post: 05-24-2016, 12:38 PM
  2. Disable Mouse Right Click
    By data808 in forum Access
    Replies: 18
    Last Post: 03-10-2014, 05:58 AM
  3. Mouse Over/Hover Over
    By nndatabase in forum Forms
    Replies: 3
    Last Post: 06-07-2013, 04:45 PM
  4. Replies: 1
    Last Post: 06-02-2009, 04:44 PM
  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