从ACCESS数据库里调出数据, 显示在页面里.. 总说<参数不足, 期待是 1 >
用DW8做了个页面.. 用ACCESS做数据库, 数据库名为db.mdb ..数据库代码如下..
------------------------------------------------------------------
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/db.asp" -->
<%
Dim news__MMColParam
news__MMColParam = "1"
If (Request.QueryString("标题") <> "") Then
news__MMColParam = Request.QueryString("标题")
End If
%>
<%
Dim news
Dim news_numRows
Set news = Server.CreateObject("ADODB.Recordset")
news.ActiveConnection = MM_db_STRING
news.Source = "SELECT * FROM news WHERE 标题 = '" + Replace(news__MMColParam, "'", "''") + "'"
news.CursorType = 0
news.CursorLocation = 2
news.LockType = 1
news.Open()
news_numRows = 0
%>
--------------------------------------------------------------------------------------------
报错信息如下..
--------------------------------------------------------------------------------------------
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] 参数不足,期待是 1。
/newsLook.asp, 第 20 行
--------------------------------------------------------------------------------------------
第20行就是 news.Open() 这个了..
不晓得问题出在哪里.. 有会的朋友请帮帮忙..