错误号码-2147217913,标准表达式中数据类型不匹配ASP与ACCESS的错误 20

strconn="DRIVER=MicrosoftAccessDriver(*.mdb);DBQ="&Server.MapPath("0312ppp.mdb")setco... strconn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("0312ppp.mdb")

set conn = server.createobject("adodb.connection")

conn.open strconn

if Err.Number<>0 then
response.write "发生错误如下"
response.write "错误号码"&Err.Number&"<p>"
response.write "错误说明"&Err.Description&"<p>"
response.write "错误辅助说明"&err.helpcontext&"<p>"
response.write "错误说明路径"&err.helppath&"<p>"
response.write "原始错误"&err.nativeerror&"<p>"
response.write "错误来源"&err.source&"<p>"

end if

sub closeconn()
conn.close
set conn=nothing
end sub

birthday=trim(Request.Form("year"))&"-"&trim(Request.Form("month"))&"-"&trim(Request.Form("day"))
area=trim(replace(replace(replace(request.form("area"),"'",""),"[",""),"]",""))
love=trim(replace(replace(replace(request.form("love"),"'",""),"[",""),"]",""))
truename=trim(replace(replace(replace(request.form("truename"),"'",""),"[",""),"]",""))

on error resume next

conn.execute "update love_main set birthday='"&birthday&"',love='"&love&"',area='"&area&"',truename='"&truename&"',loveb=loveb"&loveb_jb_cx&" where id="&userid&""

if Err.Number<>0 then
response.write "发生错误如下"
response.write "错误号码"&Err.Number&"<p>"
response.write "错误说明"&Err.Description&"<p>"
response.write "错误辅助说明"&err.helpcontext&"<p>"
response.write "错误说明路径"&err.helppath&"<p>"
response.write "原始错误"&err.nativeerror&"<p>"
response.write "错误来源"&err.source&"<p>"

end if

if conn.errors.count<>0 then
response.write "发生连接错误"
for intcounter =0 to conn.errors.count
response.write "连接错误码;"&conn.errors(intcounter).number&"<p>"
response.write "连接错误说明:"&conn.errors(intcounter).description&"<p>"
next
end if

数据库表,ID 自动编号
BIRTHDAY 日期/时间
其他都是文本
展开
 我来答
百度网友2db262e5f
2008-09-11 · TA获得超过1496个赞
知道大有可为答主
回答量:1814
采纳率:0%
帮助的人:1446万
展开全部
什么啊
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式