ADODB.Recordset 错误

l285791700 2008-12-02 05:22:55

<tr>
<td height="27" class="STYLE2">名烟名酒精品区</td>
</tr>
<tr>
<td bgcolor="#EAEAEA"><img src="ima/spacer.gif" width="1" height="5"></td>
</tr>
<tr>
<td height="412">
<% if rs3.recordcount<>0 then %>
<table width="100%" border="0" cellspacing="5" cellpadding="0">
<%
i=0
while not rs3.eof
if i mod 4=0 then response.write "<tr>"
%>
<td><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td align="center"><table width="100" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFFF"><a href="ggym/spxxxx.asp?bh=<% =rs3("bh") %>"><img src="<% =mid(rs3("tp1"),4) %>" alt="<% =rs3("mc") %>" name="" width="120" height="123" border="0"></a></td>
</tr>

</table></td>
</tr>
<tr>
<td align="center" class="zjj1"><p><a href="ggym/spxxxx.asp?bh=<% =rs3("bh") %>">
<% =gshwz(rs3("mc"),10,8) %>
</a></p>
<p><font color="#003366">市场价:
<% =formatnumber(rs3("scj"),2) %>
</font><font color="#FF6600">元</font><br>
会员价:<font color="#FF6600">
<% =formatnumber(rs3("hyj"),2) %>
</font><font color="#FF6600">元</font></p></td>
</tr>
</table></td>
<%
if i mod 4=3 then response.write "</tr>"
i=i+1
rs3.movenext
wend
%>
</table>
<%
else
%>
<table width="100%" border="0" cellspacing="5" cellpadding="50">
<tr>
<td align="center"><strong>正在更新中...</strong></td>
</tr>
</table>
<%
end if
%> </td>
</tr>



市场价:

ADODB.Recordset 错误 '800a0cc1'

在对应所需名称或序数的集合中,未找到项目。

/index.asp,行 491
...全文
42 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
ahhshan 2008-12-02
  • 打赏
  • 举报
回复
帮顶
filec75 2008-12-02
  • 打赏
  • 举报
回复
帮顶
l285791700 2008-12-02
  • 打赏
  • 举报
回复
这是什么意思啊 ~~!!
vb学生管理系统源代码 部分代码 Public UserName As String Public txtSQL As String 'use to store record SQLsentence Public dream As ADODB.Recordset 'use to store record object Public Msgtext As String '用来存放返回信息 Public OK As Boolean ' 'Public db As String Public Sub highlight() With Screen.ActiveForm If (TypeOf .ActiveControl Is TextBox) Then .ActiveControl.SelStart = 0 .ActiveControl.SelLength = Len(.ActiveControl) End If End With End Sub Sub Main() 'Dim Login As New Login 'Login.Show vbModal 'f Not Login.OK Then 'Login Failed so exit app ' End 'End If 'Unload studentmdi ' Set login = New login login.Show End Sub Public Function connectstring() As String connectstring = "Provider=Microsoft.jet.OLEDB.3.51;Data source=f:\schoolgroup\school.mdb" End Function Public Function ExecuteSQL(ByVal SQL As String, Msgstring As String) As ADODB.Recordset Dim cnn As ADODB.Connection Dim rst As ADODB.Recordset Dim sTokens() As String On Error GoTo ExecuteSQL_Error sTokens = Split(SQL) Set cnn = New ADODB.Connection cnn.Open connectstring If InStr("INSERT,DELETE,UPDATE", UCase$(sTokens(0))) Then cnn.ExecuteSQL Msgstring = sTokens(0) & "query successful" Else Set rst = New ADODB.Recordset rst.Open Trim(SQL), cnn, adOpenKeyset, adLockOptimistic Set ExecuteSQL = rst Msgstring = "查询到" & rst.RecordCount & " 条记录" End If executeSQL_exit: Set rst = Nothing Set cnn = Nothing Exit Function ExecuteSQL_Error: Msgstring = "查询错误:" & err.Description Resume executeSQL_exit End Function Public Function Testtxt(txt As String) As Boolean If Trim(txt) = "" Then Testtxt = False Else Testtxt = True End If End Function

3,055

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC HTML/XML
社区管理员
  • HTML/XML社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧