Results 1 to 8 of 8
  1. #1
    Join Date
    May 2012
    Posts
    132

    Unanswered: How the Enter button of key board runs a button on the form?

    What kind of design shall we make, so that a specific button on a form is clicked by pushing the Enter button on the keyboard?
    Last edited by ariansman; 05-04-12 at 05:35. Reason: better conveying

  2. #2
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    I haven't got a clue what you want to do, what isn't working as it should
    I'd rather be riding on the Tiger 800 or the Norton

  3. #3
    Join Date
    May 2012
    Posts
    132
    Sorry if my question was not clear.
    Well, imagine that the user has filled all blanks on the form. Now, he/she wants to save the data and go to the next record. She/he should click the save button on the form. I wonder if it is possible that she can also push the “Enter Button” on the keyboard and this performs the same command.

  4. #4
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    if you create a button to save the record then yes
    Assuming your are using bound controls (and if you dont' know what that means then almost certainly you are) the default behaviour in Access is to save any changes or new records if you move off that record
    either by closing the form or pressing one of the record navigation buttons on the bottom of the form
    if you want to add a button then add a control, and Im pretty certain the wizard will do what you want.
    however in terms of a design stylistic then you ought to think about the user interface
    if you add a button to save changes then you probably also ought to add a button to cancel changes

    but bear in mind the further you venture from standard access the more thought you must give to how you train users
    I'd rather be riding on the Tiger 800 or the Norton

  5. #5
    Join Date
    May 2012
    Posts
    132
    Thank you for the description. But, I still could not understand how we can push the “Enter Button” of the keyboard instead of clicking a button on the form.

  6. #6
    Join Date
    Jun 2005
    Location
    Richmond, Virginia USA
    Posts
    2,763
    Provided Answers: 19
    In Form Design View:

    • Right-Click on the Command Button
    • Left-Click on Properties
    • Left-Click on the Other Tab
    • Change the Default Property from No to Yes

    Now pressing <Enter> will be the same as clicking on your Command Button.

    Linq ;0)>
    Hope this helps!

    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  7. #7
    Join Date
    May 2012
    Posts
    132
    thank you,
    it worked

  8. #8
    Join Date
    Jun 2005
    Location
    Richmond, Virginia USA
    Posts
    2,763
    Provided Answers: 19
    Glad we could help!

    Linq ;0)>
    Hope this helps!

    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •