奇迹暖暖公主级8 支2:ADODB.Recordset 错误 '800a0bb9'

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/30 01:18:26
ADODB.Recordset 错误 '800a0bb9'

Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/board/board/news_index.asp,行8

我出错的地方
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp" -->
<%
Dim Recordset1
Dim Recordset1_numRows

Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_conn_STRING
Recordset1.Source = "SELECT * FROM news ORDER BY news_addtime DESC"-----第8行!!!!!!
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()

Recordset1_numRows = 0
%>

谢谢大家

Recordset1.ActiveConnection = MM_conn_STRING -----这才是第8行,
检查一下MM_conn_STRING常量