AdoRecordSetEvents:WillChangeField()

<< Click to Display Table of Contents >>

Navigation:  Ado Events > AdoRecordSetEvents Class >

AdoRecordSetEvents:WillChangeField()

Previous pageReturn to chapter overviewNext page

Purpose

The WillChangeField event is called before a pending operation changes the value of one or more Field objects in the Recordset.

 

Prototype

METHOD WillChangeField ( lFields, aFields, lStatus, oRecordSet )  CLASS AdoRecordSetEvents

 

Argument(s)

lFields        A Long that indicates the number of Field objects in Fields

aFields        An array of Usuals that contains Field objects with pending changes

lStatus        An AdoEventStatusEnum status value

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

 

 

Description

Before WillChangeField returns, set the lStatus parameter to adStatusCancel to request cancellation of the pending operation

A WillChangeField event may occur when setting the Value property and calling the Update method with field and value array parameters

 

See Also

AdoRecordSetEvents, AdoEventStatusEnum