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 OPENRS(RS,S)
-
DIM RS1
-
dim aa
-
SET RS1=SERVER.CreateObject ("ADODB.RECORDSET")
-
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
-
<% if len(trim(request("txtfname1")))>0 then
-
RS.AddNew ' I m getting error on this line
-
rs("ref_no")=CINT(aa)
-
rs("flight_id")=session("fid")
-
rs("first_name")=request("txtfname1")
-
rs("last_name")=request("txtlname1")
-
rs("sex")=request("sex1")
-
rs("age")=request("TXTage1")
-
if request("TXTage1")<12 then
-
xx=xx+rs1("fare_child")
-
else
-
xx=xx+ rs1("fare_adult")
-
end if
-
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
3 5694 jhardman 3,406
Recognized Expert Specialist
it looks like you are opening the db without the correct lock type. Try this: -
DIM RS,RS1, objConn
-
set objConn = server.createObject("ADODB.Connection")
-
SET RS=SERVER.CreateObject ("ADODB.RECORDSET")
-
s="select * from dbpassenger order by ref_no"
-
RS.open s, objConn, adOpenDynamic, adLockOptimistic
-
Let me know if this helps.
Jared
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.
<%@ 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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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:
|
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
|
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)
|
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.
|
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
| |
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:
<%
|
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...
|
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...
|
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
|
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,...
|
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...
| |
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,...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |