Microsoft OLE DB Provider for ODBC Drivers (0x80040E21)
ODBC 驱动程序不支持所需的属性。
/web/H_index_search.asp, 第 15 行
<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("database.mdb")
hon_nian=request.form("hon_nian")
hon_yue=request.form("hon_yue")
hon_ri=request.form("hon_ri")
response.Write(hon_nian)
response.Write(hon_yue)
response.Write(hon_ri)
hon_riqi=hon_nian+"-"+hon_yue+"-"+hon_ri
sql="select * from hon where riqi='"& hon_riqi &"'"
set rs=server.createobject("adodb.recordset")
'response.write(sql)
'response.end
rs.open sql,conn,1,1--------------------就是这行!
%>
[此贴子已经被作者于2005-7-16 10:36:59编辑过]
|