Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e21' ODBC 驱动程序不支持所需的属性

baivkechen baivkechen 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
不是所有的时候都有这错误,只是有时候打开会有这错误,请问是什么原因,相关代码如下

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
...全文

相关推荐

评论 6
收藏 已收藏
分享
返回顶部
baivkechen
ASP 28,401 成员 356,940 内容