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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perform Multi-Record Updates with a Single Submit

Status
Not open for further replies.

Skee777

MIS
Nov 29, 2001
17
US
Is there an easy way that to perform a multi-record update using a single submit in ASP?

Basically I have a form that is created using a query. It is built by bringing back multiple records as text boxes. I then what to change the information on a few of the text boxes and click submit to have the modifications posted to the database. The problem I am having is that because a number of the fields are named the same, the posting data comes in a comma delimited string.

I have tried using a recommendation from microsoft, but the scipt is dated and does not work for me with the current technology.


If you have a minute and can offer some assistance, I would greatly appreciate it. I can't imagine that I'm the first person who needs this feature and I'm hoping you might have run across it at some point.
 
Hi

Make sure you have a LockType of adLockBatchOptimistic set for the recordset and then use RS.UpdateBatch adEffectAll (if you have the adovbs.inc file included in your project)

A good book here is Sams Teach Yourself Active Web Database Programming in 21 Days. I found it most helpful. ISBN = 1-57521-139-4

hth
Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top