Help Center

CADOField.OriginalValueproperty

Indicates the value of a field that existed in the record before any changes were made.

DatabasespropertyCADOField.incdocumented

Syntax

PROPERTY OriginalValue () AS DVARIANT

Return value

The original field value.

Description

Indicates the value of a field that existed in the record before any changes were made.

Remarks

Use the OriginalValue property to return the original field value for a field from the current record.

In immediate update mode (in which the provider writes changes to the underlying data source after you call the Update method), the OriginalValue property returns the field value that existed prior to any changes (that is, since the last Update method call). This is the same value that the CancelUpdate method uses to replace the Value property.

In batch update mode (in which the provider caches multiple changes and writes them to the underlying data source only when you call the UpdateBatch method), the OriginalValue property returns the field value that existed prior to any changes (that is, since the last UpdateBatch method call). This is the same value that the CancelBatch method uses to replace the Value property. When you use this property with the UnderlyingValue property, you can resolve conflicts that arise from batch updates.

Reference

  • Include file CADOField.inc
  • Defined in AfxNova/CAdoFields.inc:307
  • Documented in Databases/ADO Classes/CAdoFields Class.md
  • Topic: CAdoFields Class