关于asp连接的问题,就留言表表单提交的问题???

来源:百度知道 编辑:UC知道 时间:2024/05/27 12:13:30
就是我制作留言板,现在就制作了三个页面。一个事显示Access数据库的内容,一个事内容的现实。这两个但是没有问题的。但是最后一个不行啊 ,提交表单后,显示错误的信息是,

Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] INSERT INTO 语句的语法错误。
/liuyan.asp, 第 115 行

113 MM_editCmd.ActiveConnection = MM_editConnection
114 MM_editCmd.CommandText = MM_editQuery
115 MM_editCmd.Execute
116 MM_editCmd.ActiveConnection.Close

If (MM_editRedirectUrl <> "") Then
Response.Redirect(MM_editRedirectUrl)
End If
End If

response.write MM_editQuery

MM_editCmd.ActiveConnection = MM_editConnection
MM_editCmd.CommandText = MM_editQuery
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close

If (MM_editRedirectUrl <> "") Then
Response.Redirect(MM_editRedirectUrl)
End If
End If

然后出错的时候吧输出来的复制粘贴来看看就明白了

MM_editQuery 查询语句 语法有问题

可以在113行之前 用
response.write MM_editQuery
response.end
把SQL语句显示出来看看