CommitOnClose Property

Returns or sets a Byte indicating whether the specified form saves changed records when the form closes. Read/write.

Remarks

The value of the CommitOnClose property can be one of the following.

Setting Description
0 Closing the form discards any unsaved changes.
1 (Default) Closing the form saves any unsaved changes on the form.
2 Closing the form causes Microsoft Access to prompt the user whether to save changes.

This property can only be changed during design time. During run time, it is read-only.