ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 5th, 2003, 08:46 AM
anav123 anav123 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 17 anav123 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old September 5th, 2003, 08:50 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
the problem is your .mdf file is readonly, change it =P

Reply With Quote
  #3  
Old September 5th, 2003, 09:37 AM
anav123 anav123 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 17 anav123 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks, but how can i change it?

Reply With Quote
  #4  
Old September 5th, 2003, 09:52 AM
Vlince Vlince is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Canada, Quebec, Montreal
Posts: 410 Vlince User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
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

Reply With Quote
  #5  
Old September 5th, 2003, 10:01 AM
anav123 anav123 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 17 anav123 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanx... i'll try the second way

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > help plz


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway