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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Whats this error 1

Status
Not open for further replies.

SteveD73

Programmer
Jan 5, 2001
109
GB
Hi

When I try and run my asp page it gives me this error:

ADODB.Recordset error '800a0cb3'

Object or provider is not capable of performing requested operation.

/registeruser.asp, line 27

Line 27 is

objRS("clientName") = "Client"

Ive also tried

objRS.Fields("clientName") = "Client"

Any ideas?

Thanks
 
Try to use These constants and this example for acess:

Set Connection=Server.CreateObject("ADODB.Connection")
dbPath=Server.MapPath("clients.mdb")
Connection.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="&dbPath

Const adOpenStatic = 3
Const adUseClient = 3
Const adLockPessimistic = 2

set rs=server.CreateObject("ADODB.Recordset")

sub ExecuteSQL(byval cmd)
if rs.State=1 then rs.Close
rs.CursorType = adOpenStatic
rs.CursorLocation = adUseClient
rs.LockType = adLockPessimistic
rs.Source = cmd
rs.ActiveConnection = Connection 'The record set needs to know what connection to use.
rs.Open
end sub
________
George, M
email : shaddow11_ro@yahoo.com
 
Thanks for the reply.

I have tried this:

Set Connection=Server.CreateObject("ADODB.Connection")
dbPath=Server.MapPath("users.mdb")
Connection.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="&dbPath

Const adOpenStatic = 3
Const adUseClient = 3
Const adLockPessimistic = 2

set rs=server.CreateObject("ADODB.Recordset")
ExecuteSQL("UPDATE users SET clientName = 'CLIENTTEST'")

sub ExecuteSQL(byval cmd)
if rs.State=1 then rs.Close
rs.CursorType = adOpenStatic
rs.CursorLocation = adUseClient
rs.LockType = adLockPessimistic
rs.Source = cmd
rs.ActiveConnection = Connection 'The record set needs to know what connection to use.
rs.Open
end sub

But now I get this error:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.

/test.asp, line 27

Any help is appreciated.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top