ADODB Object
 
Syntax
 
Variant = fieldobject.UnderlyingValue
 
Description
Returns a variant that is the current field value as stored in the database.
 
The UnderlyingValue property returns a variant that is the current value of the Field object as stored in the cursor. It is referred to as the underlying value, because the value you are viewing may not necessarily show changes made by other users and may not be the latest value. The value returned by the UnderlyingValue property will reflect all of the changes made in the current record for the specified Field. This can be very useful for resolving conflicts between changes made by you and other users.
 
You can also use the Resync property of the Recordset object to get the latest values for all of the Field objects in the Fields Collection.
 
If you need the original value, you can obtain it by using the OriginalValue property.
See Also
OriginalValue, Value, Recordset.CancelBatch, Recordset.CancelUpdate, Recordset.Update, Recordset.UpdateBatch.
Example
 
For Each objField In rsData.Fields
   Debug.Print objField.OriginalValue
   Debug.Print objField.UnderlyingValue
   Debug.Print objField.Value
Next