Running an application with a lot of forms and tables. On a number of my
forms, when I enter data into a field and press the Enter key, the
application exits out of the form. I've made sure the "EnterKeyBehaviour"
parameter is set up correctly, and so forth, with no success. As an aside,
if I step through a validation macro manually, the form doesn't exit, but if
I go through automatically it does.
Could this be caused because of the size of the application?
> Running an application with a lot of forms and tables. On a number
> of my forms, when I enter data into a field and press the Enter key,
> the application exits out of the form.
Do you mean that the form closes, or the whole application exits?
> I've made sure the
> "EnterKeyBehaviour" parameter is set up correctly, and so forth, with
> no success. As an aside, if I step through a validation macro
> manually, the form doesn't exit, but if I go through automatically it
> does.
> Could this be caused because of the size of the application?
Do you by any chance have a "Close" command button on that form, with
it's Default property (on the Other tab of its property sheet) set to
Yes? If so, that button will be activated when you press Enter.

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
wgaskill - 29 Jun 2007 17:16 GMT
Hitting Enter exits out of the form.
I do have a "Close" command button and it was set to "yes". I set it to
No and that solved the problem.
> > Running an application with a lot of forms and tables. On a number
> > of my forms, when I enter data into a field and press the Enter key,
[quoted text clipped - 12 lines]
> it's Default property (on the Other tab of its property sheet) set to
> Yes? If so, that button will be activated when you press Enter.