473,554 Members | 2,324 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

access_asp Error Type:ADODB.Reco rdset (0x800A0CB3)

3 New Member
Hi,
I m getting this message after executing the following code
Expand|Select|Wrap|Line Numbers
  1. <%
  2. CALL OPENDATACON
  3. DIM RS
  4. SET RS=SERVER.CreateObject ("ADODB.RECORDSET")
  5. s="select * from dbpassenger order by ref_no"
  6. CALL OPENRS(RS,S)
  7. DIM RS1
  8. dim aa
  9. SET RS1=SERVER.CreateObject ("ADODB.RECORDSET")
  10. s="select * from dbfare where flight_id='" & session("fid") & "'"
  11. CALL OPENRS(RS1,S)
  12. if rs.RecordCount >0 then
  13. rs.MoveLast
  14. aa=rs("ref_no") + 1
  15. else
  16. aa=1
  17. end if
  18. session("ref_no")=aa
  19. DIM XX
  20. xx=0
  21. <%    if  len(trim(request("txtfname1")))>0 then
  22.         RS.AddNew ' I m getting error on this line
  23.         rs("ref_no")=CINT(aa)
  24.         rs("flight_id")=session("fid")
  25.         rs("first_name")=request("txtfname1")
  26.         rs("last_name")=request("txtlname1")
  27.         rs("sex")=request("sex1")
  28.         rs("age")=request("TXTage1")
  29.         if request("TXTage1")<12 then
  30.             xx=xx+rs1("fare_child")
  31.         else
  32.             xx=xx+ rs1("fare_adult")
  33.         end if
  34.  
Error Type:
ADODB.Recordset (0x800A0CB3)
Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype

I m using SQL Server 2000 with asp.
here ref_no is numeric
May 6 '07 #1
3 5684
jhardman
3,406 Recognized Expert Specialist
it looks like you are opening the db without the correct lock type. Try this:
Expand|Select|Wrap|Line Numbers
  1. DIM RS,RS1, objConn
  2. set objConn = server.createObject("ADODB.Connection")
  3. SET RS=SERVER.CreateObject ("ADODB.RECORDSET")
  4. s="select * from dbpassenger order by ref_no"
  5. RS.open s, objConn, adOpenDynamic, adLockOptimistic
  6.  
Let me know if this helps.

Jared
May 7 '07 #2
pooja1982
3 New Member
CALL OPENDATACON
DIM RS,RS1, objConn
set objConn = server.createOb ject("ADODB.Con nection")
SET RS=SERVER.Creat eObject ("ADODB.RECORDS ET")
s="select * from dbpassenger order by ref_no"
RS.open s, objConn, adOpenDynamic, adLockOptimisti c'Now showing
'error on this line
'DIM RS
'SET RS=SERVER.Creat eObject ("ADODB.RECORDS ET")
's="select * from dbpassenger order by ref_no"
'CALL OPENRS(RS,S)
'DIM RS1
dim aa
SET RS1=SERVER.Crea teObject ("ADODB.RECORDS ET")
s="select * from dbfare where flight_id='" & session("fid") & "'"
CALL OPENRS(RS1,S)
if rs.RecordCount >0 then
rs.MoveLast
aa=rs("ref_no") + 1
else
aa=1
end if
session("ref_no ")=aa
DIM XX
xx=0

Error Type:
ADODB.Recordset (0x800A0E7D)
The connection cannot be used to perform this operation. It is either closed or invalid in this context.
May 8 '07 #3
pooja1982
3 New Member
<%@ Language=VBScri pt %>
<!-- #INCLUDE FILE="FLIGHT.in c" -->
<!--#include file="ADOVBS.in c"-->
<%=header%>
<br><br>
<%
CALL OPENDATACON
DIM RS
SET RS=SERVER.Creat eObject ("ADODB.RECORDS ET")
s="select * from dbpassenger order by ref_no"
CALL OPENRS(RS,S)
DIM RS1
dim aa
SET RS1=SERVER.Crea teObject ("ADODB.RECORDS ET")
s="select * from dbfare where flight_id='" & request.queryst ring("id") & "'"
CALL OPENRS(RS1,S)
if RS.RecordCount >0 then
RS.MoveLast
aa=RS("ref_no") + 1
else
aa=1
end if
session("ref_no ")=aa
DIM XX
xx=0
<% if len(trim(reques t("txtfname1")) )>0 then
rs.AddNew 'Error for this line
rs("ref_no")=CI NT(aa)
rs("flight_id") =session("fid")
rs("first_name" )=request("txtf name1")
rs("last_name") =request("txtln ame1")
rs("sex")=reque st("sex1")
rs("age")=reque st("TXTage1")
if request("TXTage 1")<12 then
xx=xx+rs1("fare _child")
else
xx=xx+rs1("fare _adult")
end if

I even made changes to .inc file as suggested but achieved no success..
Error Type:
ADODB.Recordset (0x800A0CB3)
Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype.
May 8 '07 #4

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

Similar topics

2
10472
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 invalid connection. /forms/maintreqresults1.asp, line 26. I'm sure I'm missing something simple, but I am at a loss with this. The code is below,...
1
6829
by: Chuck | last post by:
Hi! I have a ASP page that generates an excel report. It works fine if there are records found, however, if no records are found I would like to call the below listed function instead of getting the following error that I am presently receiving: Error Type: ADODB.Recordset (0x800A0BCD) Either BOF or EOF is True, or the current record...
1
3747
by: Amit Kela | last post by:
Hey, I am getting the following error when I try to delete the contents of a recordset under a condition statement. Is there any way I can delete them without running into this error? I need to delete the contents in the recordset 'rs' to delete the items from the shopping cart once the order is placed. Thanks, Amit Error Type:...
8
5252
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 installed. /swvtc/CliDrAppts/detailDrAppts.asp, line 31 Now line 31 of my asp page is the connection string, so there is nothing that I can do to get my...
1
2912
by: Jack | last post by:
Hi, I am trying to add a new record to a main page. This page is the processing page to a form. However, I am getting the following error message: Error Type: ADODB.Recordset (0x800A0BB9) Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. /gwisnewcon/test/successconfirmation_ori.asp, line 41
2
2167
by: ramia1983 | last post by:
All i am doing is trying to write info to a access database but iget this error Error Type: ADODB.Recordset (0x800A0BCD) Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. /AF_Load_Process_Registration.asp, line 40 here is my code: <%
1
8859
by: DragonFields | last post by:
I'm hoping someone can help me. I keep receiving the ADODB.Command error '800a0cc1' error (Item cannot be found in the collection corresponding to the requested name or ordinal.) I found a couple similar errors on the discussions but am not tracking how to apply the fixes into my code, which of course is slightly different...I'm using Visual...
3
2865
by: dotnetdev1 | last post by:
Hi Friends, Wen I am rying to run my asp application....i am ending up with this following error... Error Type: ADODB.Recordset (0x800A0CC1) Item cannot be found in the collection corresponding to the requested name or ordinal. /assistdev/INCLUDES/GEN_INCLUDES/DSB_EN_HHSTU_crtAP_HHSTU_001.asp, line 92 and the code on line...
1
3354
by: shivasusan | last post by:
Hi Friends! Please Help me! How i can solve this error? Please explain me, what is the error and how to solve? Error Type: ADODB.Recordset (0x800A0E7D) The connection cannot be used to perform this operation. It is either closed or invalid in this context. /H3finalresult/include/accept_reject2.asp, line 18
0
7612
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7536
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7576
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6163
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5443
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3583
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2027
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1147
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
853
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.