Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Visual Basic
Expertise: Beginner
Nov 2, 1999



Application Security Testing: An Integral Part of DevOps

ADO Recordset

Is there a way to programmatically reset the status of a record in an ADO 2.1 recordset? For example, I would like to change the status of a record from adRecModified to adRecNotModified, but without reverting the field values to the original values.

I don't believe it's possible, because a recordset stores three values for each field: Value, OriginalValue, and Underlying Value.

The Value is what you what you read and change. The OriginalValue is the value that was initially retrieved from the database. UnderlyingValue is what the recordset thinks is currently in the database. The Resync method (used with adResyncUnderlyingValues) refreshes the UnderlyingValue. However, I don't know of a way of refreshing the OriginalValue without wiping out any changes.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date