请问一个ODBC的问题
查全部数据不出现下面问题,条件查询时提示下面问题,为什么?"Microsoft OLE DB Provider for ODBC Drivers (0x80040E21)
ODBC 驱动程序不支持所需的属性。"
代码如下:
程序代码:
<%
hh=request.form(\"hh\")
mm=request.form(\"mm\")
set conn=server.createobject(\"adodb.connection\")
conn.open \"driver={microsoft access driver (*.mdb)};dbq=\"&server.mappath(\"dat/tj.mdb\")
exec=\"select * from hhhm where hh='\"&hh&\"' and mm='\"&mm&\"'\"
set rs=server.createobject(\"adodb.recordset\")
rs.open exec,conn,1,1
%>
<html>
<head>
<title>无标题文档</title>
</head>
<body bgcolor=\"#FFFFFF\" text=\"#000000\">
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
<%
do while not rs.eof
%><tr>
<td><%=rs(\"hh\")%></td>
<td><%=rs(\"mm\")%></td>
<td><%=rs(\"hm\")%></td>
</tr>
<%
rs.movenext
loop
%>
</body>
</html>