校友注册系统.asp, 第 141 行 不知道哪错了。请各位帮帮忙。谢谢了。非常非常急。

来源:百度知道 编辑:UC知道 时间:2024/07/08 22:43:40
If (Not MM_abortEdit) Then
' execute the insert
Set MM_editCmd = Server.CreateObject("ADODB.Command")
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

这是第141行 MM_editCmd.Execute
出现的错误是
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] INSERT INTO 语句的语法错误。
/校友注册系统.asp, 第 141 行

浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

网页:
POST 100 ??? /校友注册系统.asp

POST Data:
username=&password=&password=&truename=&email=&question=&answer=&Submit=%CC%E1%BD%BB&MM_insert=form1

时间:
2008年10月3日 星期五, 1:26:59

详细信息:
Microsof

SQL查询语句错误,可能是你的参数提交有问题,但你给的代码段无法看出问题。找找代码上面的SQL语句,就是语句里有类似“Select * from table where id=1”语句的字符串

也遇到过类似问题,是insert 语句问题,你这可能是后面的条件出错了,语法有问题,可能是多或少某符号,你也没给insert语句,只能猜。。试试吧。。