Press enter to submit a record in an Access 2003 Data Page

Posted on 2004-11-04
Last Modified: 2008-03-06
I have another question to check out just below this one.  I have an access data page that has just a handful of fields on it.  I've stripped out most of the buttons on the nav-bar to leave it with just the backwards and forwards button, the save button and the new button.

I want a way to make it so that when I press the enter key it automatically saves the record and create a new one.  Is there a way to make Enter a hotkey or something to that effect?
Question by:mslunecka
    LVL 2

    Expert Comment

    If access 2003 still uses event driven programming you can add  code to the onKeyPress event and check to see if the Enter key was pressed. If it was then save the record and start a new one, otherwise exit the subroutine.
    LVL 2

    Accepted Solution

    You will have to put the code in the event handler for the last field that they need to populate. Also make sure that it is the last field in the TAB order.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
    The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
    This video will demonstrate how to find the puppet warp tool from the edit menu and where to put the points to edit.
    The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now