Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 3rd, 2003, 08:10 PM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default multiple and non sequential update blues....

The following code gives me an Object required" error message. Any1 got any ideas? (I need to append the value contents of a database field to the name value of an html inout box).


<html>
<body>
<%ENABLESESSIONSTATE=False %>
<%

 Dim DB
 Set DB = Server.CreateObject ("ADODB.Connection")
 DB.Open ("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=C:\Inetpub\wwwroot\test\test2.2.mdb")
 Dim RS
 Set RS = Server.CreateObject ("ADODB.Recordset")
 RS.Open "SELECT * FROM SprogTbl", DB

 dim sid
Response.Write RS.Fields("SprogNo") = sid
rs.movefirst 'RS.Fields("SprogNo")
while rs.EOF=false

 for each sid in rs.Fields
x = sid + 0



 %>
<form action="report-ammend2.42.asp" method="post"name="form">
<table border=1>
<tr><td>Sprog No.</td>
<td>1st report</td>
<td> 2nd report</td></tr>




<tr><td><input type="hidden" name="SprogNo<% = Response.Write (write.sid) %>" value="<%Response.Write RS.Fields("SprogNo")%>"><% response.write RS.Fields("SprogNo")%></td>
<td><input type="text" name="Report<%= sid %>" value="<%Response.Write RS.Fields("Report")%>"></td>
<td><input type="text" name="rep2<%= sid %>" value="<%Response.Write RS.Fields("rep2")%>"></td></tr>

<%

RS.movenext RS.Fields("SprogNo")



next
wend


 %>
</table>
<br>
<input type="submit" value="submit">
<input type="button" value="Cancel" >
</form>
</body>
</html>





Similar Threads
Thread Thread Starter Forum Replies Last Post
update multiple columns in an update statement debbiecoates SQL Server 2000 1 August 17th, 2008 04:01 AM
Remoting Blues balesh.mind ASP.NET 2.0 Professional 0 July 25th, 2007 11:12 PM
Rename multiple file upload in sequential order flyguylol PHP How-To 0 January 11th, 2006 06:05 PM
combo box blues desireemm Access 1 August 18th, 2005 07:07 AM
update multiple records mateenmohd Classic ASP Basics 4 June 28th, 2004 03:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.