473,789 Members | 2,785 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 5694
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
10504
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, the URL string appears to be valid:
1
6847
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 has been deleted. Requested
1
3753
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: ADODB.Recordset (0x800A0CB3)
8
5268
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 apps working again.
1
2946
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
2173
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
8890
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 Interdev 6.0 with MS SQL Enterprise Mgr 8.0. I'm linking an .asp page to a stored procedure and I've...
3
2885
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 92 is...
1
3372
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
9511
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10199
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10139
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7529
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5417
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3700
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.