注册 登录
编程论坛 ASP技术论坛

ACCESS数据库,插数据进去的时候提示错误.

Kettyjin1983 发布于 2008-03-25 11:42, 809 次点击
错误内容是这样:
Error Type:
Microsoft JET Database Engine (0x80004005)
Could not find file 'C:\WINDOWS\system32\dbo.mdb'.
/surveytest/dealsurvey.asp, line 30
代码:
set conn=server.createobject("adodb.connection")
set rs=server.createobject("adodb.recordset")
conn.open"provider=microsoft.jet.oledb.4.0;data source="&server.mappath("access.mdb")rs.open "select * from vote4 where id = '"&ID&"'",conn,1,1
到底是什么原因啊?
7 回复
#2
Kettyjin19832008-03-25 15:51
郁闷,现在的错误提示是这样了,各位大虾,求救啊.
Microsoft JET Database Engine (0x80004005)
Operation must use an updateable query.
/surveytest/dealsurvey.asp, line 36
#3
madpbpl2008-03-25 20:18
权限问题
#4
Kettyjin19832008-03-26 09:25
那怎么把权限给改成可以修改的权限呢?
帮忙!!
#5
菁菁世家2008-03-26 09:37
rs.open "select * from vote4 where id = '"&ID&"'",co
rs.open "select * from vote4 where id = '"&ID&"'",conn,1,1
改成
rs.open "select * from vote4 where id like '"&ID&"'",conn,1,1
#6
Kettyjin19832008-03-26 09:58
楼上的,不行哦,应该是权限问题,可怎么修改权限啊?
#7
madpbpl2008-03-26 10:20
网站所在文件夹还有windows\temp文件夹
属性--》安全--》权限--》users 添加完全控制权限
#8
Kettyjin19832008-03-26 11:36
Excellent,thanks!
1