你好请问这怎么解决:显示:[Microsoft][ODBC Microsoft Access Driver] INSERT INTO 语句的语法错误。
你好请问这段代码哪里有错误:<%dimn,e,o,textn=request.Form("n")e=request.Form("e")o=request.Form("o"...
你好请问这段代码哪里有错误:<%
dim n,e,o,text
n=request.Form("n")
e=request.Form("e")
o=request.Form("o")
text=request.Form("text")
Set conn=Server.CreateObject("ADODB.Connection")
conn.Open ("Driver={Microsoft Access Driver (*.mdb)};Dbq="& Server.MapPath("lyb.mdb"))
sql="insert into talk(name,e-mail,object,memo) values('"+n+"','"+e+"','"+o+"','"+text+"')"
conn.execute (sql)
response.write "记录添加成功!"
%>
显示:Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] INSERT INTO 语句的语法错误。 展开
dim n,e,o,text
n=request.Form("n")
e=request.Form("e")
o=request.Form("o")
text=request.Form("text")
Set conn=Server.CreateObject("ADODB.Connection")
conn.Open ("Driver={Microsoft Access Driver (*.mdb)};Dbq="& Server.MapPath("lyb.mdb"))
sql="insert into talk(name,e-mail,object,memo) values('"+n+"','"+e+"','"+o+"','"+text+"')"
conn.execute (sql)
response.write "记录添加成功!"
%>
显示:Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] INSERT INTO 语句的语法错误。 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询