473,395 Members | 1,653 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Error;ADODB.Recordset (0x800A0CB3)?

This is the error that i receive.

Error Type:
ADODB.Recordset (0x800A0CB3)
Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype.
/project/pages/addnew.asp, line 11

The code is;
<html>
<head><title>Displaying registered guest Table</title>
<%
Dim objconn,strconn,objrs
set objconn = server.createobject("ADODB.Connection")
strconn="provider=microsoft.jet.OLEDB.4.0; Data Source="& _
"c:\inetpub\wwwroot\project\pages\Register.mdb "
objconn.open strconn
set objrs= server.createobject("ADODB.Recordset")
objrs.open "register", objconn, 3,1
objrs.addnew
objrs("ADMNO")=request.form("admno")
objrs("NAME")=request.form("name")
objrs("DATE FO BIRTH")=request.form("dob")
objrs("ADDRESS")=request.form("add")
objrs("FEES")=request.form("fees")
objrs.update
objrs.close
%>
</head>
<body>
<table border=1>
<%
objrs.open "register",objconn
while not objrs.eof %>
<tr>
<td> <%=objrs("ADMNO")%></td>
<td> <%=objrs("NAME")%></td>
<td> <%=objrs("DATE FO BIRTH")%></td>
<td> <%=objrs("ADDRESS")%></td>
<td> <%=objrs("FEES")%></td>
</tr>
<%
objrs.movenext
wend
objrs.close
objconn.close
set objrs=nothing
set objconn=nothing
%>
</table>
</body>
</html>
NOTE:Iam A Begginner in asp please help me.
Feb 12 '12 #1
1 4188
jhardman
3,406 Expert 2GB
This is an easy one! The default db connection only has the ability to read from the db, not make any changes. In order to make changes you will need to change your db connection. The simplest way to do this (in my opinion) is to add two parameters to the line where you open the connection:
Expand|Select|Wrap|Line Numbers
  1. objconn.open strconn 3 4
it's been a while, and I'm not 100% sure it is supposed to be 3 and 4, you can look them up, they are defined by microsoft as "adopendynamic" and "adlockoptimistic". Google search should confirm if I got the numbers right.

Alternately, there is a text file you can include in your asp page called "adodb.inc", that has a whole bunch of constants defined, and then you can just say "objconn.copen strconn adopendynamic adlockoptimistic"

Let me know if this helps.

Jared
Feb 12 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Tom Petersen | last post by:
I have been copying and pasting code and this has been working, but now I get this error: Error Type: ADODB.Recordset (0x800A0E7D) Operation is not allowed on an object referencing a closed or...
8
by: Drew | last post by:
This is a weird error, it seems if we reboot the web server, which is also the SQL server, I get this error, ADODB.Recordset (0x800A0E7A) Provider cannot be found. It may not be properly...
0
by: elcc1958 | last post by:
I need to support a VB6 application that will be receiving disconnected ADODB.Recordset from out DotNet solution. Our dotnet solution deals with System.Data.DataTable. I need to populate a...
0
by: Dot Netizen | last post by:
I am having trouble passing an ADODB.Recordset from a VB6 application to a VB.Net class library using COM Interop. I am running this on XP SP2 with the .Net Framework 1.1 and MDAC 2.8 SP1. I've...
5
by: Simone | last post by:
Hello I hope you guys can help me. I am very new to ADO... I am creating a ADODB connection in a module and trying to access it from a command button in a form. Function fxEIDAssgn(plngEID As...
0
by: Vash10 | last post by:
I have two asp files. Login.asp and changePass.asp. what i want to do is to make the user change his password after his first login. so what happens is login.asp is the first to be used then it is...
3
by: pooja1982 | last post by:
Hi, I m getting this message after executing the following code <% CALL OPENDATACON DIM RS SET RS=SERVER.CreateObject ("ADODB.RECORDSET") s="select * from dbpassenger order by ref_no" CALL...
4
nitindel
by: nitindel | last post by:
Hi All, I am using DbCom Handler for my DataBase Connectivity. But the Query is not firing i.e recordset is not getting populated... it is Showing the error as follows: ...
1
by: AliHabib | last post by:
when trying to set the sql statement by this code give error ADODB.Recordset (0x800A0E78) Operation is not allowed when the object is closed. /SearchSubject.asp, line 129 if...
2
by: rashmi wadhwa | last post by:
<% dim conn,rs set conn=Server.createobject("ADODB.Connection") set rs=Server.createobject("ADODB.RecordSet") conn.Open "Provider=SQLOLEDB;Persist Security Info=False;User Id=sa;Initial...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.