Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


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

ADO Recordset

Question:
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.

Answer:
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.

 

 

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