<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1014385" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1014385</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/updating-multiple-listings-one-form#comment-1082986</link>
    <description> &lt;p&gt;My first recommendation would be to move this to a stored procedure (if possible). If that isn&#039;t possible then consider using the UpdateBatch method. You&#039;ll have to add a LockType of adLockBatchOptimistic, and a CursorType of adOpenKeyset.   &lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;On Error Resume Next&lt;br /&gt;
case Request.Form(&quot;sub_update_institutions&quot;)&amp;lt;&amp;gt;&quot;&quot;&lt;br /&gt;
sqlstr=&quot;SELECT * FROM institutions;&quot;&lt;br /&gt;
rs1.Open sqlstr,con,3,3&lt;br /&gt;
do until item_index &amp;gt;request.Form.Count-2&lt;br /&gt;
for i=1 to 7 step 1&lt;br /&gt;
rs1.fields(i)=request.form(item_index)&lt;br /&gt;
item_index=cint(item_index)+1&lt;br /&gt;
next&lt;br /&gt;
rs1.MoveNext()&lt;br /&gt;
loop &lt;/p&gt;
&lt;p&gt;If Err.number = 0 Then&lt;br /&gt;
     rs1.UpdateBatch&lt;br /&gt;
Else&lt;br /&gt;
     rs1.CancelBatch&lt;br /&gt;
End If&lt;/p&gt;
&lt;p&gt;rs1.MoveFirst&lt;br /&gt;
rs1.close&lt;br /&gt;
call show_updated()&lt;/p&gt;
 </description>
     <pubDate>Mon, 28 May 2001 14:34:49 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1082986 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
