Results 1 to 2 of 2
  1. #1
    wilbursteiner is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2020
    Posts
    1

    Exclamation "Onmousemove" captures name of textbox without clicking it


    In Access forms textbox,
    I can run a function
    OnClick that has this line: strCtrl = screen.activecontrol.name
    This returns the name of the Textbox.
    Now on the same Textbox,
    I would like to run a function
    OnMouseMove that captures the name of the Textbox without clicking it.
    Is there any way to do this?

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,388
    Yes, But... Problem is that the active control (the one with the focus) might not be the textbox with the event procedure code for the mouse move.

    Edit: Tested - The mousemove event can first set the focus to its textbox, making it the activecontrol, then it works OK.

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

Similar Threads

  1. Replies: 2
    Last Post: 02-06-2019, 01:24 PM
  2. Replies: 3
    Last Post: 04-08-2018, 08:18 AM
  3. Replies: 1
    Last Post: 09-07-2015, 08:00 AM
  4. Replies: 4
    Last Post: 02-12-2015, 11:42 AM
  5. Replies: 2
    Last Post: 10-12-2010, 12:02 PM

Tags for this Thread

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