|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
help plz
i get this
Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only. /sign2.asp, line 36 after running the following code: <% set c2=Server.CreateObject("ADODB.connection") set r2=Server.CreateObject("ADODB.recordset") c2.Open "DBQ= " & server.MapPath ("forum.mdb")& "; Driver={Microsoft Access Driver (*.mdb)};" r2.open "member", c2,3,3 dim id,un,fn,ln,pass,mal,age,add id=Request.Form ("tetx1") un=Request.Form ("text2") pass=Request.Form ("password1") mal=Request.Form ("tetx1") fn=Request.Form ("text5") ln=Request.Form ("text6") age=Request.Form ("tetx7") add=Request.Form ("text8") r2.AddNew r2("userid")=id r2("nick")=un r2("password")=pass r2("email")=mal r2("fname")=fn r2("lname")=ln r2("year")=age r2("address")=add r2("dateadd")=date() r2.Update '(<-line 36) r2.Close set r2=nothing c2.Close set c2=nothing %> what is the problem? ty |
|
#2
|
|||
|
|||
|
the problem is your .mdf file is readonly, change it =P
|
|
#3
|
|||
|
|||
|
thanks, but how can i change it?
|
|
#4
|
|||
|
|||
|
Humm...
right-click the .mdb file and select properties from the menu. Then look at the bottom...you should have two checkbox's Uncheck "Read only" If that doesn't work then its a permission issue Copy/paste your error message in the textbox over at google.com you'll find *many* articles/links for that error message and most importantly, the solution! Hope this helps! Sincerely Vlince |
|
#5
|
|||
|
|||
|
thanx... i'll try the second way
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > help plz |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|