遇到这种错误应该怎么办!

zhengchaocn 2003-09-15 02:14:49
Microsoft OLE DB Provider for ODBC Drivers 错误 '80004005'

[Microsoft][ODBC Microsoft Access Driver]行中有错误

/admin/wushu/add_wushu_act.asp,行 35
第35行就是Rs.update
程序如下
<!--#include file = ../../function/open_conn.asp-->
<%
Dim Conn,Sql,Rs
Dim wushu_title,wushu_content,auther,edittype,getstar,elseinfo,auther_info,contact_mode
wushu_title = Request.Form("wushu_title")
wushu_content = Request.Form("wushu_content")
auther = Request.Form("auther")
edittype = Request.Form("edittype")
getstar = Request.Form("getstar")
elseinfo = Request.Form("elseinfo")
if elseinfo = "其它请注明" then elseinfo = Null
auther_info = Request.Form("auther_info")
contact_mode = Request.Form("contact_mode")
if wushu_title = "" or wushu_content = "" or edittype = "" then
msg "对不起,您的信息不完整"
else
Set Conn = Server.CreateObject("Adodb.Connection")
Open_Conn Conn,"storybook.mdb"
Set Rs = Server.CreateObject("Adodb.Recordset")
Sql = "Select * from book_wushu where wushu_title='"&wushu_title&"'"
Rs.Open Sql,Conn,3,2
if not Rs.eof or not Rs.bof then
msg "对不起,您已经发布过这篇文章"
else
Rs.addnew
Rs("wushu_title") = wushu_title
Rs("wushu_content") = wushu_content
Rs("auther") = auther
Rs("edittype") = edittype
Rs("getstar") = getstar
Rs("elseinfo") = elseinfo
Rs("auther_info") = auther_info
Rs("contact_mode") = contact_mode
Rs("IP_source") = Request.ServerVariables("REMOTE_ADDR")
Rs.Update
End if
End if
msg "恭喜你上传成功"
Rs.Close
Set Rs = Nothing
Conn.CLose
Set Conn = Nothing
%>
...全文
33 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
junsunchen 2003-09-15
  • 打赏
  • 举报
回复
1.可能某些字段的值与数据库的数的类型不对!建义你改用sql语句来做
2.或试一下把
Rs.Close
Set Rs = Nothing
Conn.CLose
Set Conn = Nothing
先删除,试下!
likecola 2003-09-15
  • 打赏
  • 举报
回复
Rs.Open Sql,Conn,3,2
把这个改成
Rs.Open Sql,Conn,1,3
具体是为什么你可以看看msdn

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧