标题:[求助]conn.execute exec出错
只看楼主
cy11423
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2007-10-19
 问题点数:0 回复次数:0 
[求助]conn.execute exec出错

<%
set conn=server.createobject("adodb.connection")
conn.open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source="&server.mappath("guestbook.mdb")
name=request.form("name")
tel=request.form("tel")
message=request.form("message")
exec="insert into gustbook(name,tel,message) values ('"&name&"',"&tel&",'"&message&"')"
conn.execute exec
conn.close
set conn=nothing
response.write "记录添加成功!"
%>
____________________________________________________________________________
错误提示:
错误类型:
Microsoft JET Database Engine (0x80040E14)
INSERT INTO 语句的语法错误。
________________________________________________________________________-___

哪位高手知道该怎么解决啊,急啊!!!!!!!!!!


[此贴子已经被作者于2007-10-19 14:41:18编辑过]

搜索更多相关主题的帖子: exec conn 
2007-10-19 14:40



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-179038-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.012749 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved