恐惧之炼狱装置爆什么:BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/06 16:51:12
<%@ language=VBScript %>
<% if Request.ServerVariables("http_method")="GET" then
set conn=server.CreateObject("adodb.connection")
connstr="dbq="&server.MapPath("diaocha.mdb")&";driver={microsoft access driver (*.mdb)};"
conn.open connstr
set rec=server.CreateObject("adodb.recordset")
sqlstr="select * from userinfor where user_name='"& request.form("user_name")& "'"
set rec=conn.execute(sqlstr)
%>

<html>
<head>
<title>致参加网络教育培训学员的函</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.9p { font-family: "宋体"; font-size: 9pt; line-height: 18px}
.style1 {color: #FF0000}
-->
</style>
<link href="braveboy.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#FFFFFF" text="#000000" topmargin="0">
<table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tr>
<td width="121" height="1" bgcolor="#FFFFFF"></td>

</tr>
<tr>

</tr>
<tr>
<td align=center class=9p>
<table width="614" border="1" cellspacing="0" bordercolor="#73B6FA">
<tr class="style1">
<td width="56">姓 名</td>
<td width="39">性别</td>
<td width="69">职业</td>
<td width="84">联系电话</td>
<td width="127">身份证</td>
<td colspan="2">联系地址</td>
</tr>
<tr class="style1">
<td><%=rec("user_name") %></td>
<td> </td>
<td><%=rec("user_job")%></td>
<td><%=rec("user_tel")%></td>
<td><%=rec("user_id")%></td>
<td colspan="2"><%=rec("user_add")%></td>
</tr>
<tr class="style1">
<td colspan="5"> 一、您通过何种渠道得知中国建筑装饰协会培训中心开展网络教育的?</td>
<td width="30">答案</td>
<td width="179"><%=rec("answer8")%></td>
</tr>
<tr class="style1">
<td colspan="5"> 二、您对网络学习这种形式的满意度如何?</td>
<td>答案</td>
<td><%=rec("answer11")%></td>
</tr>

在取数据集后应该判断是否是取到数据的
比如在rec取得数据后,应该判断 if not(rec.bof and rec.eof)
然后再进行下面的操作