一个网页问题,请帮忙
我做了一个搜索页面,总是出错:
错误类型:
ADODB.Field (0x800A0BCD)
BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。
/cyxjcy/connect/JCY/Jcyllyj/serch3.asp, 第 56 行
附代码:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../../../Connections/cyxjcy.asp" -->
<%
Dim Recordset1__acc
Recordset1__acc = "1"
If (request.form("textfield") <> "") Then
Recordset1__acc = request.form("textfield")
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_cyxjcy_STRING
Recordset1.Source = "SELECT * FROM CYXJCYllyj WHERE Btitle like '%" + Replace(Recordset1__acc, "'", "''") + "%' ORDER BY ID DESC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table width="697" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="697" height="96">标题名称包括
<form id="form1" name="form1" method="post" action="founds2.asp">
<label>
<input type="text" name="textfield" />
</label>
<label>
<input type="submit" name="Submit" value="提交" />
</label>
</form>
</td>
</tr>
</table>
<table width="697" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="697" height="145" valign="top"><table width="360" border="0">
<tr>
<td>标题</td>
<td>作者</td>
</tr>
<tr>
<td><%=(Recordset1.Fields.Item("Btitle").Value)%></td>
<td><%=(Recordset1.Fields.Item("Bwriter").Value)%></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
参考答案:用的是什么浏览器?