665
צפיות
צפיות
3
תשובות
תשובות
בעיה בהוספת נתונים למוסד ACCESS
<%
dim user
dim fname
dim lname
dim pass
dim email
dim id
dim zip
dim birth
dim sq
dim rs
dim path
dim conn
user=Request.Form("username")
fname=request.form("fname")
lname=request.form("lname")
pass=request.form("pass")
email=request.form("email")
id=request.form("id")
zip=request.form("zip")
birth=request.form("year")
sq="insert into tblregister(usrname,fname)values('"&user&"','"&fname&"')"
path=server.MapPath("register.mdb")
set conn=server.CreateObject("ADODB.Connection")
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &path
conn.Execute sq
conn.Close
set conn=nothing
%>
וזאת הבעיה
Error Type:
Microsoft JET Database Engine (0x80004005)
Operation must use an updateable query.
/web/html/reg.asp, line 204
3 תשובות
האם עשית שינויים במחשב כמו התקנה
מחדש או שינוי הגדרות? אם כן אז תבצע את סידרת הפעולות הבאות – פעולות אלו מתקנות את הודעת השגיאה שקיבלת (מתוך האתר של מיקרוסופט)
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query
The cause of this is lack of permissions for the ASPNET user to write to the folder. To remedy this situation follow these steps
The cause of this is lack of permissions for the ASPNET user to write to the folder. To remedy this situation follow these steps
Open the file explorer
Tools menu
Options menu
Click the [View] tab
Uncheck "Use simple file sharing"
Click OK
Find the folder in which your MDB file is kept
Right-click the folder
Select "Sharing and security"
Click the [Security] tab
Click the Add button
Click the Advanced button
Click the Find Now button
Select the ASPNET user and click OK (i.g IUSER_PcName)
In the checkboxes at the bottom of the form, give this user Full Control
עובד !!! תודה רבה !!!!
אתה לא יודע כמה אני שמח (כבר התחלתי להתיאש)
תודה תודה תודה 🙂
למה אתה לא עושה ככה…>>?
Rs.AddNew
Rs("try") = request.form("try")
Rs.UpDate
???
הכי פשוט…וגם יותר מהיר חוסך משאבים מהשרת