charlieb
09-03-2004, 08:31 AM
I keep getting this error message:
ADODB.Field error '800a0bcd'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/projectors/u2.asp, line 30
Here is the code:
<%
Response.Buffer = True
' Projector to retrieve
Dim pName
pName = Request.Form("ProjectorList1")
Dim pName2
pName2 = Request.Form("ProjectorList2")
' If Len(ProjectorName) < 1 Then
' ProjectorName = NONE
' End If
' If Len(ProjectorName2) < 1 Then
' ProjectorName2 = NONE
' End If
' Connection string
Dim connStr
connStr = "dsn=mrres88d;uid=88klg;pwd=55666k;network=d4b876cn"
' Recordset object
Dim rs
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "select * from screenshots where ProjectorName = '" & replace(pName,"'","''") & "'", connStr, 3, 4
pjProjectorName = rs("ProjectorName")
pjAuthor = rs("Author")
pjProjectorDescription = rs("ProjectorDescription")
pjScreen = rs("Screen")
pjFileName1 = rs("FileName1")
pjFileName2 = rs("FileName2")
pjFileName3 = rs("FileName3")
pjFileName4 = rs("FileName4")
%>
<html>
<head>
<base target="contents">
</head>
<body topmargin="0" leftmargin="0" text="#000000" bgcolor="#FEE79E">
<%
rs.Close
Set rs = Nothing
Dim rs2
Set rs2 = Server.CreateObject("ADODB.Recordset")
rs2.Open "select * from screenshots where ProjectorName = '" & replace(pName2,"'","''") & "'", connStr, 3, 4
%>
<form method="POST" action="ProjectorsMain2.asp">
<table border="1" width="772" height="118">
<tr>
<td width="399" height="12">
<font size="1" face="Arial"><b>Projector:
<select size="1" name="ProjectorList1">
<option selected><%= Response.Write(pjProjectorName)%></option>
</select>
</b></font></td>
<td width="388" height="12"><font size="1" face="Arial"><b>Projector:
<select size="1" name="ProjectorList2">
<option selected><%= rs("ProjectorName2")%></option>
</select> <input type="submit" value="Submit" name="B1"></form>
</b></font>
</td>
</tr>
<tr>
<td width="399" height="67"><font size="1" face="Arial"><b>Author: <%= Response.Write(pjAuthor)%><br>
Description: <%= Response.Write(pjProjectorDescription)%></b></font></td>
<td width="388" height="67"><font size="1" face="Arial"><b>Author: <%= rs2("Author")%>
<br>
Description: <%= rs2("ProjectorDescription")%>
</b></font></td>
</tr>
<tr>
<td width="399" height="39"><b><font size="1" face="Arial">Screen: <%= Response.Write(pjScreen)%><span style="position: absolute; left: 207; top: 105"><a href="<%=Response.Write(pjFileName1)%>" target="contents"><img border="2" src="PICT0005_small1.JPG" alt="PICT0005.JPG (76099 bytes)" width="35" height="27"></a></span><span style="position: absolute; left: 253; top: 105"><a href="<%=Response.Write(pjFileName2)%>" target="contents"><img border="2" src="PICT0005_small1.JPG" alt="PICT0005.JPG (76099 bytes)" width="35" height="27"></a></span><span style="position: absolute; left: 342; top: 105"><a href="<%=Response.Write(pjFileName3)%>" target="contents"><img border="2" src="PICT0005_small1.JPG" alt="PICT0005.JPG (76099 bytes)" width="35" height="27"></a></span><br>
Screenshots (click to enlarge)</font></b><span style="position: absolute; left: 298; top: 105"><b><font size="1" face="Arial"><a href="<%=Response.Write(pjFileName4)%>" target="contents"><img border="2" src="PICT0005_small1.JPG" alt="PICT0005.JPG (76099 bytes)" width="35" height="27"></a></font></b></span></td>
<td width="388" height="39">
<font size="1" face="Arial"><b>Screen: <%= rs2("Screen")%><span style="position: absolute; left: 592; top: 106"><a href="PICT0005.JPG" target="main"><img border="2" src="PICT0005_small1.JPG" alt="PICT0005.JPG (76099 bytes)" width="35" height="27"></a></span><br>
Screenshots (click to enlarge)<span style="position: absolute; left: 635; top: 106"><a href="PICT0005.JPG" target="main"><img border="2" src="PICT0005_small1.JPG" alt="PICT0005.JPG (76099 bytes)" width="35" height="27"></a></span><span style="position: absolute; left: 723; top: 106"><a href="PICT0005.JPG" target="main"><img border="2" src="PICT0005_small1.JPG" alt="PICT0005.JPG (76099 bytes)" width="35" height="27"></a></span><span style="position: absolute; left: 679; top: 106"><a href="PICT0005.JPG" target="main"><img border="2" src="PICT0005_small1.JPG" alt="PICT0005.JPG (76099 bytes)" width="35" height="27"></a></span></b></font>
</td>
</tr>
</table>
</body>
</html>
<%
rs2.Close
Set rs2 = Nothing
Set connStr = Nothing
%>
Again Any Help Is Appreciated
ADODB.Field error '800a0bcd'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/projectors/u2.asp, line 30
Here is the code:
<%
Response.Buffer = True
' Projector to retrieve
Dim pName
pName = Request.Form("ProjectorList1")
Dim pName2
pName2 = Request.Form("ProjectorList2")
' If Len(ProjectorName) < 1 Then
' ProjectorName = NONE
' End If
' If Len(ProjectorName2) < 1 Then
' ProjectorName2 = NONE
' End If
' Connection string
Dim connStr
connStr = "dsn=mrres88d;uid=88klg;pwd=55666k;network=d4b876cn"
' Recordset object
Dim rs
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "select * from screenshots where ProjectorName = '" & replace(pName,"'","''") & "'", connStr, 3, 4
pjProjectorName = rs("ProjectorName")
pjAuthor = rs("Author")
pjProjectorDescription = rs("ProjectorDescription")
pjScreen = rs("Screen")
pjFileName1 = rs("FileName1")
pjFileName2 = rs("FileName2")
pjFileName3 = rs("FileName3")
pjFileName4 = rs("FileName4")
%>
<html>
<head>
<base target="contents">
</head>
<body topmargin="0" leftmargin="0" text="#000000" bgcolor="#FEE79E">
<%
rs.Close
Set rs = Nothing
Dim rs2
Set rs2 = Server.CreateObject("ADODB.Recordset")
rs2.Open "select * from screenshots where ProjectorName = '" & replace(pName2,"'","''") & "'", connStr, 3, 4
%>
<form method="POST" action="ProjectorsMain2.asp">
<table border="1" width="772" height="118">
<tr>
<td width="399" height="12">
<font size="1" face="Arial"><b>Projector:
<select size="1" name="ProjectorList1">
<option selected><%= Response.Write(pjProjectorName)%></option>
</select>
</b></font></td>
<td width="388" height="12"><font size="1" face="Arial"><b>Projector:
<select size="1" name="ProjectorList2">
<option selected><%= rs("ProjectorName2")%></option>
</select> <input type="submit" value="Submit" name="B1"></form>
</b></font>
</td>
</tr>
<tr>
<td width="399" height="67"><font size="1" face="Arial"><b>Author: <%= Response.Write(pjAuthor)%><br>
Description: <%= Response.Write(pjProjectorDescription)%></b></font></td>
<td width="388" height="67"><font size="1" face="Arial"><b>Author: <%= rs2("Author")%>
<br>
Description: <%= rs2("ProjectorDescription")%>
</b></font></td>
</tr>
<tr>
<td width="399" height="39"><b><font size="1" face="Arial">Screen: <%= Response.Write(pjScreen)%><span style="position: absolute; left: 207; top: 105"><a href="<%=Response.Write(pjFileName1)%>" target="contents"><img border="2" src="PICT0005_small1.JPG" alt="PICT0005.JPG (76099 bytes)" width="35" height="27"></a></span><span style="position: absolute; left: 253; top: 105"><a href="<%=Response.Write(pjFileName2)%>" target="contents"><img border="2" src="PICT0005_small1.JPG" alt="PICT0005.JPG (76099 bytes)" width="35" height="27"></a></span><span style="position: absolute; left: 342; top: 105"><a href="<%=Response.Write(pjFileName3)%>" target="contents"><img border="2" src="PICT0005_small1.JPG" alt="PICT0005.JPG (76099 bytes)" width="35" height="27"></a></span><br>
Screenshots (click to enlarge)</font></b><span style="position: absolute; left: 298; top: 105"><b><font size="1" face="Arial"><a href="<%=Response.Write(pjFileName4)%>" target="contents"><img border="2" src="PICT0005_small1.JPG" alt="PICT0005.JPG (76099 bytes)" width="35" height="27"></a></font></b></span></td>
<td width="388" height="39">
<font size="1" face="Arial"><b>Screen: <%= rs2("Screen")%><span style="position: absolute; left: 592; top: 106"><a href="PICT0005.JPG" target="main"><img border="2" src="PICT0005_small1.JPG" alt="PICT0005.JPG (76099 bytes)" width="35" height="27"></a></span><br>
Screenshots (click to enlarge)<span style="position: absolute; left: 635; top: 106"><a href="PICT0005.JPG" target="main"><img border="2" src="PICT0005_small1.JPG" alt="PICT0005.JPG (76099 bytes)" width="35" height="27"></a></span><span style="position: absolute; left: 723; top: 106"><a href="PICT0005.JPG" target="main"><img border="2" src="PICT0005_small1.JPG" alt="PICT0005.JPG (76099 bytes)" width="35" height="27"></a></span><span style="position: absolute; left: 679; top: 106"><a href="PICT0005.JPG" target="main"><img border="2" src="PICT0005_small1.JPG" alt="PICT0005.JPG (76099 bytes)" width="35" height="27"></a></span></b></font>
</td>
</tr>
</table>
</body>
</html>
<%
rs2.Close
Set rs2 = Nothing
Set connStr = Nothing
%>
Again Any Help Is Appreciated