回 帖 发 新 帖 刷新版面

主题:救命呀

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!-- #include file="conn.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
.style4 {font-size: 12px}
.style6 {font-size: 10px}
.style7 {
    font-size: 24px;
    font-weight: bold;
}
-->
</style>
</head>

<body>
<%
if request("add")="yes" then
Inacounts=request("Inacounts")
Outfactory=request("Outfactory")
sequence=request("sequence")
Accountant=request("Accountant")
Keeping=request("Keeping")
Leadman=request("Leadman")

sql="insert into outstorage(Inacounts,Outfactory,sequence,Accountant,Keeping,Leadman) values ('"&Inacounts&"','"&Outfactory&"','"&sequence&"','"&Accountant&"','"&Keeping&"','"&Leadman&"')"
conn.execute(sql)
end if


%>


错误类型:
Microsoft JET Database Engine (0x80004005)
操作必须使用一个可更新的查询。
/毕业设计1/chukupindan.asp, 第 31 行
   
[[size=3]color=0000FF]第 31 行[/color][/size]
是sql="insert into outstorage(Inacounts,Outfactory,sequence,Accountant,Keeping,Leadman) values ('"&Inacounts&"','"&Outfactory&"','"&sequence&"','"&Accountant&"','"&Keeping&"','"&Leadman&"')"
conn.execute(sql)

[color=FF00FF][size=5][b]救救命哦  请问这是少啦什么代码不 [/b][/size][/color]

回复列表 (共5个回复)

沙发

数据库文件没有写权限。

板凳

把你的数据库文件的权限设为可读写(EVERYONE)

3 楼

刚才看的时候还没有看到楼上,怎么刚一按回复主题就看到他回了?

4 楼

改成这样试试
set rs=sever.createobject("adodb.recrodset")
sql="……"  '第31行
rs.open sql,conn,1,3 '原来的32行改成这样

5 楼


谢啦  我现在知道啦是数据库权限的问题   谢谢你们哦   非常谢谢哦

我来回复

您尚未登录,请登录后再回复。点此登录或注册