RecordExit Event

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Occurs when the user navigates to another record, refreshe the data access page, or closes the data access page.

Private Sub Object_RecordExit(DSCEventInfo As DSCEventInfo)

Object   The name of the DataSourceControl object that this event applies to.

DSCEventInfo   The DSCEventInfo object that contains information about the event.

Remarks

This event occurs after the BeforeUpdate event, but before the record is changed.

In the case of a banded data access page, moving among child records for the same parent does not fire this event.

Setting the ReturnValue property of the DSCEventInfo object to False cancels this event and prevents the record from being changed.

Use the DataPage and Section properties of the DSCEventInfo object to determine the data access page, section, and recordset that was updated.