Results 1 to 5 of 5
  1. #1
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    313

    How to Determine Mouse Location when Event Triggers


    I have an Event in a Form Detail section that fires when the User double clicks. Is there any way I can determine the location of the Mouse on the Form when the Event fires?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    Is that really nessessary? For what?

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,728

  4. #4
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,444
    don't use the doubleclick event, use the mousedown event, this will give you the X Y location of the mouse on the form see this link

    https://msdn.microsoft.com/en-us/lib...ffice.11).aspx

    OK, not a double click, but you can mimic that using a timer if necessary

  5. #5
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    313
    Ajax, that is exactly what I was looking for... works like a charm... I'll tell the user to hold down the shift key and then test for that in the MouseDown Event. Thanks, Eddie

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

Similar Threads

  1. Replies: 1
    Last Post: 03-08-2015, 10:35 AM
  2. Designing Email Triggers
    By lynthel in forum Access
    Replies: 3
    Last Post: 11-20-2013, 11:01 AM
  3. New To SQL, Need To Learn About Triggers
    By David92595 in forum SQL Server
    Replies: 4
    Last Post: 03-20-2013, 11:27 AM
  4. Creating a mouse hover event
    By Coffee in forum Forms
    Replies: 1
    Last Post: 07-17-2011, 11:25 PM
  5. mouse wheel event
    By blueraincoat in forum Access
    Replies: 0
    Last Post: 03-30-2011, 12:42 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