Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e21' ODBC 驱动程序不支持所需的属性
不是所有的时候都有这错误,只是有时候打开会有这错误,请问是什么原因,相关代码如下
sqlAnt = ""
if shenhe<>"" then
sqlAnt = "where BN_shenhe=" & shenhe & " "
end if
if cw_name<>"" and cw_user<>"" then
sqlant=sqlant&" and bn_title like '%"&cw_name&"%' and bn_username like '%"&cw_user&"%'"
else
if cw_name<>"" then
sqlant=sqlant&" and bn_title like '%"&cw_name&"%'"
else
if cw_user<>"" then
sqlant=sqlant&" and bn_username like '%"&cw_user&"%'"
end if
end if
end if
if cw_start<>"" and cw_enddate<>"" and cw_check=1 then
sqlant=sqlant&" and BN_time >= '"&cw_start&"' and BN_time <= '"&cw_enddate&"'"
end if
set cat = server.CreateObject("adodb.recordset")
ant = "select id,BN_title,BN_username,BN_time,BN_shenhe from biz_news_tab " & sqlAnt & " order by id desc"
cat.open ant,conn,1,1