Name
Recordset.WillChangeField Event — (Versions 2.0, 2.1, 2.5, 2.6)
Synopsis
WillChangeField(ByValcFieldsAs Long, _ ByValFieldsAs Variant, _adStatusAs ADODB.EventStatusEnum, _ ByValpRecordsetAs ADODB.Recordset)
The WillChangeField event is called before an operation changes one or more Field object values.
Arguments
-
cFields(Recordset object) Represents the actual recordset that you wish to refresh.
-
Fields(Variant array) Contains the Field objects that are waiting to be changed.
-
adStatus(EventStatusEnum) Indicates the status of the current operation. The
adStatusparameter is set toadStatusOKif the operation causing this event was successful. If theadStatusparameter is set toadStatusCantDeny, the event cannot request that the operation be canceled. If theadStatusparameter is set toadStatusUnwantedEvent, this event will not be called again. If theadStatusparameter is set toadStatusCancel, a cancellation request will be made for this operation.
-
pRecordset Represents the Recordset object that fired this event.
See Also
EventStatusEnum Enumeration, Recordset.FieldChangeComplete Event, Recordset.Update Method, Recordset.Value Property
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access