conn.asp
<% dim conn dim connstr dim db db="upload.mdb" Set conn = Server.CreateObject("ADODB.Connection") connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(""&db&"") conn.Open connstr %>
del.asp
<!--#include file="conn.asp"--> <% dim sql dim rs set conn=server.createobject("adodb.connection") conn.open connstr set rs=server.createobject("adodb.recordset") sql="delete from username where id="&request("id") rs.open sql,conn,1,1 set rs=nothing conn.close set conn=nothing response.redirect("adminname.asp") %>
错误类型: Microsoft JET Database Engine (0x80004005) 无法从指定的数据表中删除。 为什么会出现这样的提示呀,要怎么修改呀。