var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: How do I fire an event when pressing the ENTER key
I would like to allow the user the ability to update the database with data on the form, by simply pressing the ENTER key.
Can I program this into access?
Thanks, in advance!
Set the KeyPreview property of the form to True (in the Event tab), then use this code:
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
' Code to save the data on the form
Have a nice day!
Is the form bound or unbound?
Originally Posted by eva.thaeh
I normally create a command button that saves the record. To make the enter key click this command button, set the commnd button's Default property to Yes