Enter Key Behavior on Data Access Page

Posted on 2004-10-27
Last Modified: 2012-08-13
Hello all,

I have a database that is accessed and populated through data access pages.

The problem I am having is that when a user attempts to input data via the enter key, Access responds with a carriage return instead of inputting and moving to the next field.. I have instructed them to use the 'Tab' key, however, the number of enter key errors is excessive..

I have tried changing the enter key behavior property within the database, but this setting doesn't seem to effect the behavior of the page. Is there a way to change the enter key behavior within the Data Access Page itself? And if not, can I just disable the enter key?

Thanks in advance for any suggestions.

Question by:BTognietti
    LVL 5

    Expert Comment

    Put a ON ENTER Event and then code what you want the behavior to be.........
    LVL 4

    Accepted Solution

    since a data access page is just an HTML page couldn't you remap the EnterKey via Javascript?
    LVL 9

    Author Comment


    Here's what I used;


    function kH(e) {
    var pK = document.all? window.event.keyCode:e.which;
    return pK != 13;
    document.onkeypress = kH;
    if (document.layers) document.captureEvents(Event.KEYPRESS);


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    The Complete Ruby on Rails Developer Course

    Ruby on Rails is one of the most popular web development frameworks, and a useful tool used by both startups and more established companies to build strong graphic user interfaces, and responsive websites and apps.

    The first two articles in this short series — Using a Criteria Form to Filter Records ( and Building a Custom Filter ( — discuss in some detail how a form can be…
    When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
    In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

    857 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

    16 Experts available now in Live!

    Get 1:1 Help Now