Reply
ADODB.Recordset (0x800A0CC1) error. item cannot be found in the collection
Old 06-25-2009, 02:17 PM ADODB.Recordset (0x800A0CC1) error. item cannot be found in the collection
Junior Talker

Posts: 3
Name: joby
Trades: 0
Hello all, how are you?

New error to contend with, hope you can help.

Just to give you a quick heads up and say im new to this (ASP, stored procedures etc), so sorry for lack of terminology that may crop up.

I'm trying to return a selection of images from a database, by using stored procedures to return the image(s) to an ASP page. However when try to run the file on my localhost, i get the following error:

ADODB.Recordset (0x800A0CC1)
Item cannot be found in the collection corresponding to the requested name or ordinal.
/admin/stores/index.asp, line 240

line 240:
Quote:
<input type="hidden" id="floorID" name="floorID" value="<%=oRS("floorplansID")%>"/>


I've executed the Stored procedure and its working fine. The connection to the database is ok, as all other pages seem to be working fine. I have also checked all the names and variables, and al the names seem to be the same.

Any ideas as to why this may be happening would be great.
__________________
True refrigeration
jobygolden is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 06-29-2009, 03:08 PM Re: ADODB.Recordset (0x800A0CC1) error. item cannot be found in the collection
chrishirst's Avatar
Super Moderator

Posts: 22,210
Location: Blackpool. UK
Trades: 0
<%=oRS("floorplansID")%> would be looking for a field in a recordset to display, NOT executing a stored procedure


http://www.asp101.com/articles/wrox/asp30/26100903.asp
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-30-2009, 06:33 AM Re: ADODB.Recordset (0x800A0CC1) error. item cannot be found in the collection
Junior Talker

Posts: 4
Trades: 0
Hi Chrishirst, thank you for the reply.

Also, thank you for the link. Just to say I am new to the world of ASP coding and strored Procedures, im carrying on some work set by my previous manager.

I have worked with an example set by my former manager, following it as he had set (at least i thought). The stored procedure(s) are held / executed on SQL server, but this error is killing me - any extra infor would be great.

Kind regards
MG
mind_grapes is offline
Reply With Quote
View Public Profile
 
Old 07-02-2009, 04:46 PM Re: ADODB.Recordset (0x800A0CC1) error. item cannot be found in the collection
itHighway's Avatar
Skilled Talker

Posts: 73
Name: Zeeshan Dar
Location: GUJ
Trades: 0
If you sql query looks something like following than make sure the Table you are calling in query has "floorplansID" column
Quote:
SELECT * FROM [TABLENAME]
If your sql query looks something like following than make sure you to mentioned "floorplansID" field in sql qeury.
Quote:
SELECT FIELD1, FIELD2 FROM [TABLENAME]
itHighway is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to ADODB.Recordset (0x800A0CC1) error. item cannot be found in the collection
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.12306 seconds with 13 queries