How can I get a command to execute when the enter key is pressed after
entering data?
Handle the KeyDown event for the control, and check to see if the key
pressed was the Enter key:
If KeyCode = vbKeyReturn Then
' Execute your command here
End If
One note: the KeyDown event won't fire if you have a command button on your
form which has its Default property set to Yes. In that case, you may need
to use the KeyPress event instead.
Carl Rapson