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

Error message When trying to add record to database... 1

Status
Not open for further replies.

DaiDreamer

Programmer
May 8, 2001
31
US
Hi!

I get this error message when I try and add my record to the database:

ADODB.Recordset error '800a0cb3'

The operation requested by the application is not supported by the provider.

/bureauofminere/frdocinvetory/NewAdded.asp, line 216


Here's the line of code the error is talking about:


set ADDconn = server.createobject("ADODB.Connection")
ADDconn.Open "DSN=SuretyDNS"
Session.timeout = 15
'Set Session("MyDB_conn") = ADDconn
response.write "addtodatabase"
Set RsAdd = server.CreateObject("ADODB.Recordset")
Set RsAdd.ActiveConnection = ADDconn
RsAdd.Open "InventoryOfSuretyDocuments"
response.write rsadd.fields("Section Name")

For counter = 1 to count
Select case Counter

case 1

RsAdd.AddNew
'error here
RsAdd.Fields("Section Name")= section1
RsAdd.Fields("Date of Requirement")=DateofRequire1
DocType1=request.form("BRDocType1")


Thanks!

DaiDreamer
 
You need to set a writeable lockType to your recordset. The info you need (along with some other good stuff for you) is located here.

faq333-618

:)
paul
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top