管字的成语:请高手解答DEAMWEAVER网页连接中的问题

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/29 14:39:03
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] 操作必须使用一个可更新的查询。
/post.asp, 第 115 行
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 ----115行
MM_editCmd.ActiveConnection.Close

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

End If
%>
<%
Dim gl
Dim gl_numRows

Set gl = Server.CreateObject("ADODB.Recordset")
gl.ActiveConnection = MM_gusetbook_STRING
gl.Source = "SELECT * FROM guestbook"
gl.CursorType = 0
gl.CursorLocation = 2
gl.LockType = 1
gl.Open()

gl_numRows = 0
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>留言讨论区</title>
<link href="td.css" rel="stylesheet" type="text/css" />
</head>

<body>
<form id="form1" name="form1" method="POST" action="<%=MM_editAction%>">
<table width="552" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="274" rowspan="2"><img src="图像/Main_girl01.gif" alt="" width="166" height="60" /></td>
<td width="278"> </td>
</tr>
<tr>
<td><img src="图像/index22_8.jpg" alt="" width="35" height="39" /></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>