Results 1 to 3 of 3
  1. #1
    DCV0204 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    85

    Form Buttons

    I have this command:
    Private Sub Command3_Click()



    I would like the option to be to Click the button or hit the enter key on the keyboard. What do I need to add so when I hit Enter it is the same as clicking the button?
    Thanks.

  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,530
    If the button has focus, hitting enter will have the same effect as clicking anyway. Or are you looking for the Default property of the button?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    DCV0204 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    85
    Thanks, I figured it out.

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

Similar Threads

  1. Command Buttons on form
    By bespra in forum Forms
    Replies: 10
    Last Post: 11-12-2011, 01:50 PM
  2. Replies: 3
    Last Post: 10-29-2011, 04:25 AM
  3. GO TO buttons on form
    By csh in forum Forms
    Replies: 8
    Last Post: 10-23-2011, 06:40 AM
  4. Buttons activating on form startup
    By howieyo in forum Forms
    Replies: 0
    Last Post: 06-13-2011, 06:48 PM
  5. Form and Buttons
    By rmohebian in forum Forms
    Replies: 1
    Last Post: 02-14-2011, 09:57 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