为什么找不到数据呢?
浙江云 2004-10-07 06:17:34 <%
userid=Session("yilin_status_UserID")
' Open connection to the database
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open xDb_Conn_Str
' Build SQL
strsql = "select DISTINCT order_id from [ShopList] where userid='"&userid&"'"
'Response.Write strsql
Set rs = Server.CreateObject("ADODB.Recordset")
rs.cursorlocation = 3
rs.Open strsql, conn, 1, 2
totalRecs = rs.RecordCount
' Load Key for record
x_Id = rs("Id") '----------38行
x_Order_Id = rs("Order_Id")
x_Product_Id = rs("Product_Id")
x_Price3 = rs("Price3")
x_Num_ber = rs("Num_ber")
x_Summ = rs("Summ")
tot_Summ = tot_Summ + x_Summ ' Accumulate Total
cnt_Summ = cnt_Summ + 1 ' Increment no. of records
x_userid = rs("userid")
x_BuyTime = rs("BuyTime")
%>
ADODB.Recordset 错误 '800a0cc1'
在对应所需名称或序数的集合中,未找到项目。
/shoplistlist.asp,行 38