标题:求高手帮忙看看啊~!!ADODB.Field (0x800A0BCD)先谢谢啦
取消只看楼主
haoshuangkun
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2011-1-31
结帖率:0
已结贴  问题点数:20 回复次数:0 
求高手帮忙看看啊~!!ADODB.Field (0x800A0BCD)先谢谢啦
错误类型:
ADODB.Field (0x800A0BCD)
BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。
/web/6.asp, 第 35 行

<td width="383"><%=(Recordset1.Fields.Item("t_id").Value)%></td>第 35 行



<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/coon.asp" -->
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
If (Request.Form("t_name") <> "") Then
  Recordset1__MMColParam = Request.Form("t_name")
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows

Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_coon_STRING
Recordset1.Source = "SELECT * FROM t_book WHERE t_name = '" + Replace(Recordset1__MMColParam, "'", "''") + "'"
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.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<table width="501" height="325" border="1">
  <tr>
    <td width="102">编号</td>
    <td width="383"><%=(Recordset1.Fields.Item("t_id").Value)%></td>
  </tr>
  <tr>
    <td>姓名</td>
    <td><%=(Recordset1.Fields.Item("t_name").Value)%></td>
  </tr>
  <tr>
    <td>性别</td>
    <td><%=(Recordset1.Fields.Item("t_sex").Value)%></td>
  </tr>
  <tr>
    <td>电话</td>
    <td><%=(Recordset1.Fields.Item("t_dianhua").Value)%></td>
  </tr>
  <tr>
    <td height="54">地址</td>
    <td><%=(Recordset1.Fields.Item("t_dizhi").Value)%></td>
  </tr>
  <tr>
    <td height="46">电子邮件</td>
    <td><%=(Recordset1.Fields.Item("t_email").Value)%></td>
  </tr>
  <tr>
    <td>关系</td>
    <td><%=(Recordset1.Fields.Item("t_guanxi").Value)%></td>
  </tr>
</table>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
搜索更多相关主题的帖子: 记录 include file 
2011-01-31 18:11



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-331783-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.126143 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved