• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 308
  • Last Modified:

Enter Key Behavior on Data Access Page

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.

Bud
0
BTognietti
Asked:
BTognietti
1 Solution
 
niblickCommented:
Put a ON ENTER Event and then code what you want the behavior to be.........
0
 
CrossWiredCommented:
since a data access page is just an HTML page couldn't you remap the EnterKey via Javascript?

http://www.htmlgoodies.com/beyond/keycapture.html
0
 
BTogniettiAuthor Commented:
Thanks..

Here's what I used;

<SCRIPT>

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);

</SCRIPT>
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now