传上虚拟服务器后出现80020009错误

jxbw7408 2009-08-13 12:07:16
在本机测试是通过了的传上虚拟服务器后 提示出错
<%
Dim Recordset2__MMColParam
Recordset2__MMColParam = "1"
If (Request.Form("cash") <> "") Then
Recordset2__MMColParam = Request.Form("cash")
End If
%>
<%
Dim Recordset2
Dim Recordset2_cmd
Dim Recordset2_numRows
Dim webo

Set Recordset2_cmd = Server.CreateObject ("ADODB.Command")
Recordset2_cmd.ActiveConnection = MM_prc_STRING
Recordset2_cmd.CommandText = "SELECT count(微波炉) as TT,sum(微波炉) as AA FROM cash WHERE 网点编码 = ? and 中心收票='未收' group by 微波炉"
Recordset2_cmd.Prepared = true
Recordset2_cmd.Parameters.Append Recordset2_cmd.CreateParameter("param1", 200, 1, 255, Recordset2__MMColParam) ' adVarChar

Set Recordset2 = Recordset2_cmd.Execute
Recordset2_numRows = 0
if clng(Recordset2("TT"))>0 then
webo=Recordset2("AA")
else
webo="0"
end if

%>


提示出色行出错。。。。
...全文
49 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
hookee 2009-08-13
  • 打赏
  • 举报
回复


Set Recordset2 = Recordset2_cmd.Execute()
Recordset2_numRows = 0
If Not (Recordset2.EOF AND Recordset2.BOF) Then
If IsNumeric(Recordset2("TT").value) Then
if clng(Recordset2("TT").value)>0 then
webo = Recordset2("AA").value
else
webo = "0"
end if
Else
webo = "0"
End If
End If

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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