Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Driver Errors 1

Status
Not open for further replies.

missippi

IS-IT--Management
Feb 8, 2001
42
US
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only.
/RegisterUser1.asp, line 9

I keep getting this error when I am trying to update my access database user information.

I have a basic form.html page that accepts users information and does a post to this page.

my database is just a baisc access 2000 database that has a tblUsers table in it.

Thanks!

Missippi
__________________________________________________________
<%@ Language=VBScript %>
<% Option Explicit %>
<!--#include virtual=&quot;/adovbs.inc&quot;-->
<!--#include file=&quot;DatabaseConnect.asp&quot;-->
<HTML>
<BODY>
<%
Dim objRS, bolAlreadyExists
If ((Request.Form(&quot;username&quot;) = &quot;&quot;) OR (Request.Form(&quot;password&quot;) = &quot;&quot;) _
OR (Request.Form(&quot;email&quot;) = &quot;&quot;) OR (Request.Form(&quot;firstname&quot;) = &quot;&quot;) _
OR (Request.Form(&quot;lastname&quot;) = &quot;&quot;)) Then
Response.Write &quot;<A HREF='register.html'>&quot;
Response.Write &quot;You must enter values for all the fields.&quot;
Response.Write &quot;</A>&quot;
Else
BolAlreadyExists = False
Set objRS = Server.CreateObject(&quot;ADODB.Recordset&quot;)
objRS.Open &quot;tblUsers&quot;, objConn, , adLockOptimistic, adCmdTable
Do While Not (objRS.EOF OR bolAlreadyExists)
If (StrComp(objRS(&quot;Username&quot;), Request.Form(&quot;username&quot;), _
vbTextCompare) = 0) Then
Response.Write &quot;<A HREF='register.html'>&quot;
Response.Write &quot;Username already exists.&quot;
Response.Write &quot;</A>&quot;
bolAlreadyExists = True
End If
If (StrComp(objRS(&quot;Email&quot;), Request.Form(&quot;email&quot;), _
vbTextCompare) = 0) Then
Response.Write &quot;<A HREF='register.html'>&quot;
Response.Write &quot;Email address already found in table.&quot;
Response.Write &quot;</A>&quot;
bolAlreadyExists = True
End If
objRS.MoveNext
Loop
If Not bolAlreadyExists Then
objRS.AddNew
objRS(&quot;FirstName&quot;) = Request.Form(&quot;firstname&quot;)
objRS(&quot;LastName&quot;) = Request.Form(&quot;lastname&quot;)
objRS(&quot;Email&quot;) = Request.Form(&quot;email&quot;)
objRS(&quot;Username&quot;) = Request.Form(&quot;username&quot;)
objRS(&quot;Password&quot;) = Request.Form(&quot;password&quot;)
objRS.Update
Response.Write &quot;Thank you for registering.&quot;
End If
objRS.Close
Set objRS = Nothing
End If

%>
<!--#include file=&quot;DatabaseDisconnect.asp&quot;-->
</BODY>
</HTML>


_______________________________________________________
 
Well, sorry I can't answer your post, I just started dabbling in ASP a week or so ago.

I am however from MS and was just wondering what part of the state you are from. Rob
Just my $.02.
 
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only.
/RegisterUser1.asp, line 9

The error tells you the problem. &quot;...Database or object is read-only.&quot;

You need to go to the properties of the database and make it an archive, not 'read only'. Either that, or you need to make the folder it is contained within possess the permissions to allow the IUSER_(computername) to do more than read the files. Give them access to update, delete, etc.

-Ovatvvon :-Q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top