Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DISABLING "ENTER KEY" IN A FORM 1

Status
Not open for further replies.

HerickP

IS-IT--Management
May 10, 2000
68
US
Hi again,<br><br>Is there a way to disable the &quot;Enter&quot; key in a form?? I have users complaining that before they can finish entering all records in the textboxes, sometimes they will hit enter by accident, and imcomplete records get entered into the table. THanks a lot once again!!!
 
You can go into Opions, and set the Enter Key behaviour (also, all those options can be set dynamically using Application.setoption)<br><br>You probably want to set the behavior to &quot;Next Field&quot;.&nbsp;&nbsp;<br><br>Also, you can set the Form.Cycle property to CurrentRecord.<br><br>Lastly, but to be avoided, you can trap the enter key on the keydown event and set the keycode to 0.<br><br>--Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top