LondonBoy
08-31-2006, 05:26 PM
Hi All,
I'm currently working on code that was written by a previous developer.
I'm a PHP Developer but one project was done in ASP before my arrival.
This is the code
<form name="form1">
<%
i=1
Do While not rsProds.eof
st=i
if i<10 then st="0"&i
v1=rsProds("Value")
rsProds.movenext
v2=rsProds("Value")
rsProds.movenext
sel=""
If getSession("dimAlias")=v1&"x"&v2 Then sel=" checked"
%>
<tr id="tr<%=st%>" value="<%=v1&"x"&v2%>">
<td class="dim0" align="center"><%= v1 %></td>
<td class="dim0" align="center"><%= v2 %></td>
<td class="dim0" align="center"><input name="optdim" type="radio" value="<%=v1&"x"&v2%>" onclick="setColor('tr<%=st%>')"<%= sel %> /></td>
</tr>
<%rsProds.movenext
i=i+1
Loop
%>
I get an error saying: ADODB.Recordset error '800a0bcd'
the line is bold is what the error log is saying is the offending line.
Can anyone help me out with this?
This is what rsProds is in case anyone needs that info to help me out:
set rsProds=OpenRecordSet(db, sqlLstProds, 1,3)
Thanks alot
BK
I'm currently working on code that was written by a previous developer.
I'm a PHP Developer but one project was done in ASP before my arrival.
This is the code
<form name="form1">
<%
i=1
Do While not rsProds.eof
st=i
if i<10 then st="0"&i
v1=rsProds("Value")
rsProds.movenext
v2=rsProds("Value")
rsProds.movenext
sel=""
If getSession("dimAlias")=v1&"x"&v2 Then sel=" checked"
%>
<tr id="tr<%=st%>" value="<%=v1&"x"&v2%>">
<td class="dim0" align="center"><%= v1 %></td>
<td class="dim0" align="center"><%= v2 %></td>
<td class="dim0" align="center"><input name="optdim" type="radio" value="<%=v1&"x"&v2%>" onclick="setColor('tr<%=st%>')"<%= sel %> /></td>
</tr>
<%rsProds.movenext
i=i+1
Loop
%>
I get an error saying: ADODB.Recordset error '800a0bcd'
the line is bold is what the error log is saying is the offending line.
Can anyone help me out with this?
This is what rsProds is in case anyone needs that info to help me out:
set rsProds=OpenRecordSet(db, sqlLstProds, 1,3)
Thanks alot
BK