Results 1 to 2 of 2
  1. #1
    data808 is offline Noob
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    727

    Macro or VBA

    After data is entered into text box, on the "On Enter" event, how do I make it click a button on the form?



    Similar to the effect of when you enter your username then password, most people just hit enter on the keyboard to auto click the login button.

    Anyone know how to do this? Not sure if I need VBA or a macro can do it.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Put the same code in the textbox AfterUpdate event as is in the button Click event. Or call the button Click event from the AfterUpdate event.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 2
    Last Post: 06-30-2013, 09:59 AM
  2. Replies: 2
    Last Post: 05-05-2012, 02:34 AM
  3. How to do this macro
    By Andrias14 in forum Access
    Replies: 0
    Last Post: 03-12-2012, 04:40 AM
  4. Macro help
    By jcaptchaos2 in forum Access
    Replies: 2
    Last Post: 05-04-2011, 09:50 AM
  5. Replies: 0
    Last Post: 01-12-2011, 12:43 PM

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