Results 1 to 3 of 3
  1. #1
    sevanty7 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Posts
    37

    Using "Enter" key to do same thing as clicking

    Hello,
    I currently have a couple forms with search criteria textboxes on them and a button beside them that when clicked runs the search.


    Just to make things quicker I'm wondering if it possible to also have it so that after you've completing typing in the search you can just press enter and it will run the search.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Sure, using the after update event of the textbox(es).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    AlexHedley's Avatar
    AlexHedley is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    England
    Posts
    180

    Using "Enter" key to do same thing as clicking

    You can make a button the DEFAULT button so Enter is the same as pressing it.

    You can do the same for the CANCEL property so ESC key will cancel any input but this is only for one button

    After Update would be the best if you have multiple textboxes you want to use.

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

Similar Threads

  1. Replies: 1
    Last Post: 08-02-2011, 07:21 AM
  2. Is there such thing as "month and year as digit"
    By beejay101 in forum Queries
    Replies: 1
    Last Post: 05-16-2011, 11:28 PM
  3. Replies: 7
    Last Post: 01-23-2011, 12:32 PM
  4. Replies: 4
    Last Post: 01-06-2011, 10:52 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