Event fired when the user submits a form.

Parameters

<id expN>

The id property of the control that had focus when the form was submitted.

Property of

Form, SubForm

Description

A form is submitted when the user either:

Presses Enter when the form has focus and no Editor, Grid, or Browse object has focus.

Presses Spacebar when a pushbutton has focus.

Clicks a pushbutton.

The concept of submitting a form is antiquated and rarely used. You should code the onClick event handler for a specific pushbutton, and set the default property of a pushbutton to true so that pushbutton is clicked when Enter is pressed.

Note

The default property will work as described above only when SET CUAENTER is ON. When CUAENTER is OFF, the Enter key emulates the Tab key and merely shifts focus to the next control.