<< Click to Display Table of Contents >>

Navigation:  Ado Events > AdoRecordSetEvents Class >


Previous pageReturn to chapter overviewNext page


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



METHOD WillChangeRecordSet ( lReason, lStatus, oRecordSet ) CLASS AdoRecordSetEvents



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




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