Enter Key behavior

W

wgaskill

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?
 
D

Dirk Goldgar

In
wgaskill said:
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.
 
W

wgaskill

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.
 
Top