错误提示 0x80040E21
<%
dim rs,sql
dim page,maxPerPage
maxPerPage=15 '每页显示的记录数
myKeyword=Request("myKeyword")
page=Request("page")
if (page="" or isempty(page)) then page=1
thisUrl="banciList.asp?myKeyword="&myKeyword
session("adminOldUrl")=thisUrl&"&page="&page
set rs=server.createobject("adodb.recordset")
sql="select * from banci where 1=1"
sql=sql&" order by id desc"
if not (myKeyword="" or isempty(myKeyword) ) then
sql=sql&" and banci="&myKeyword
end if
rs.open sql,conn,1,1
rs.pagesize=MaxPerPage
%>
conn是这样写的
<%
dim conn,connstr
c+server.mappath("../date/#lyyiyun#.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
set conn=server.createobject("ADODB.CONNECTION")
conn.open connstr
%>
返回的 myKeyword=2222
数据库里 banci是数字类型
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E21)
ODBC 驱动程序不支持所需的属性。
提示:rs.open sql,conn,1,1 这行错误
[ 本帖最后由 jon_wong 于 2008-9-19 14:00 编辑 ]
|