If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Updating multiple records

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-18-03, 04:18
Queued Queued is offline
Registered User
 
Join Date: Feb 2003
Posts: 1
Updating multiple records

I have created a (update) form.

I gathered the data from the database (access) using a loop so the form fields are filled in with the data.

My code:

Code:
  <%
   do while not rs.eof
    %>
    <tr> 
      <td width="163" colspan="3"> 
        <div align="right"><%=rs("KEY")%></font> </div>
      </td>
      <td width="130">
        <input type="text" name="<%=rs("ID")%>" value="<%=rs("VALUE")%>" size="30"></font></td>
      <td width="259"><%=rs("COMMENTS")%></font></td>
    </tr>
  <%
   rs.movenext
  loop
 rs.close
set rs = nothing
%>
What i want is updating all the fields in the database like a batch update. I can do it with one record but there are a lot of values so the record become very long.

Does anybody have an idea?
Reply With Quote
  #2 (permalink)  
Old 02-22-03, 02:16
Bunce Bunce is offline
Registered User
 
Join Date: Jul 2002
Location: Australia
Posts: 147
UPDATE [table]
SET [FieldName] = [Value]
WHERE [filter]

http://www.w3schools.com/sql

Cheers,
Andrew
__________________
There have been many posts made throughout the world.
This was one of them.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On