Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6181305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:59:46+00:00 2026-05-24T00:59:46+00:00

In classic ADO in VB6, in a recordset that’s come from an external source,

  • 0

In classic ADO in VB6, in a recordset that’s come from an external source, say, Set Rs = Conn.Execute("SELECT * FROM Table"), each Field has an OriginalValue property, so that after an update to a record you can still see what the original value of each field was.

However, I’m working with a recordset built like so:

Set Rs = New ADODB.Recordset
Rs.Fields.Append "Name", adVarChar, 100, adFldMayBeNull
Rs.Open
Rs.AddNew
Rs.Fields("Name").Value = "rudolph"
Rs.Update

But in this recordset, even if I change the value of a field, the OriginalValue property stays blank. Is there any way besides throwing the whole recordset to an XML stream, modifying the XML, and recreating the recordset to get OriginalValue to have the value I want?

I’m working with some previews of data changes where I have two recordsets, one representing the current values and one representing the original values. It’s a pain, when needing to compare to see if something has changed, to have two objects instead of just one with two properties.

I know there is metadata inside a recordset about what its source table is, whether it’s updatable, what the primary keys are, and what kind of properties the provider supports (such as NextRecordset), but some of them could be hard to access in a fabricated recordset such as I’m working with.

Also, could some locking setting such as adLockBatchOptimistic somehow be needed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T00:59:47+00:00Added an answer on May 24, 2026 at 12:59 am

    Replace the line

    rs.Update
    

    with

    rs.UpdateBatch
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a classic asp webpage written in vbscript that outputs the results from
I've begun maintaining an MFC desktop app that uses classic ADO. There's a database
I'm having trouble with a filter on an ADO Recordset in legacy ASP Classic
I have the following subroutine in a classic ASP class that calls the ADO
Classic ASP had 'server side includes' so that one could easily design a generic
In classic ASP there is a global object called Application that is accessed simultaniously
In Classic ASP, how do you detect on that the page got control via
I am using ASP classic with ADO, connecting to SQL Server 2008. I inherited
Classic ASP, VBScript context. A lot of articles including this Microsoft one , say
I am looking out for a way to access stored procedures using Classic ADO.Net,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.