Help with Updating Multiple records via Looping
- From: jbarnes5@xxxxxxxxxxxxxxx
- Date: 27 Dec 2006 12:07:58 -0800
This is the first page......
<select size="1" name="Q1_<%=i%>" onChange="calc(<%=i%>)">
<option selected value="<% =rsScores("Q1")
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
<%
rsScores.movenext
loop
%>
<input type="hidden" name="x" value="<%=i%>">
This is the page that it posts to......
Dim strID, QQ1
Set Conn5S = Server.CreateObject("ADODB.Connection")
Conn5S.Open "Provider=sqloledb;Data
Source=ebs-sqlc1-vs3.edn.runi.com\SSS;UID=casuser;PWD=hppccas;DATABASE=skills"
count = Request.Form("x") - 1
for i = 0 to (count)
strID = Request.form("Emp & " i " &"'")
QQ1= Request.form("Q1 & " i " &"'")
sSQL = "UPDATE ECuryear SET Q1= '" & QQ1 & "' where (empid ='" & strID
& "')"
Conn5S.Execute(sSQL)
NEXT
When I execute the web page with a response.write on the sequel
statement, this is what it returns. Does anyone see what I am doing
wrong?
UPDATE ECuryear SET Q1= '' where (empid ='')
.
- Follow-Ups:
- Re: Help with Updating Multiple records via Looping
- From: Bob Barrows [MVP]
- Re: Help with Updating Multiple records via Looping
- Prev by Date: Re: Display ADO Recordset in Access
- Next by Date: Re: Help with Updating Multiple records via Looping
- Previous by thread: Re: Display ADO Recordset in Access
- Next by thread: Re: Help with Updating Multiple records via Looping
- Index(es):
Relevant Pages
|
|