AdoRecordSetEvents:WillChangeRecordSet()

<< Click to Display Table of Contents >>

Navigation:  Ado Events > AdoRecordSetEvents Class >

AdoRecordSetEvents:WillChangeRecordSet()

Previous pageReturn to chapter overviewNext page

Purpose

The WillChangeRecordset event is called before a pending operation changes the Recordset.

 

Prototype

METHOD WillChangeRecordSet ( lReason, lStatus, oRecordSet ) CLASS AdoRecordSetEvents

 

Argument(s)

lReason        An EventReasonEnum value that specifies the reason for this event

lStatus        An AdoEventStatusEnum status value

oRecordSet        A Recordset object. The Recordset for which this event occurred

 

 

Description

When WillChangeRecordset is called, the lStatus parameter is set to adStatusOK if the operation that caused the event was successful. It is set to adStatusCantDeny if this event cannot request cancellation of the pending operation Before WillChangeRecordset returns, set the lStatus parameter to adStatusCancel to request cancellation of the pending operation

 

See Also

AdoRecordSetEvents, AdoEventReasonEnum, AdoEventStatusEnum