Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count the number of records updated.

Status
Not open for further replies.

Sanibel

Technical User
Nov 15, 2001
73
GB
I am using db.execute sqlstring to update a number of records in a table. Is there a variable that contains the number of records which have been updated? If not is there any other method that I can use to find the number updated?

Thanks
 
Following the db.Execute, you can reference
[tt]
myChanges = db.RecordsAffected
[/tt]

To see the number of records Inserted, Updated or Deleted.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top