INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

ADODB.Recordset error '800a0cc1' Item cannot be found in the collection corresponding to the reques

ADODB.Recordset error '800a0cc1' Item cannot be found in the collection corresponding to the reques

ADODB.Recordset error '800a0cc1' Item cannot be found in the collection corresponding to the reques

(OP)
hello,
i am trying to recode an old ASP Site and am having a problem with a calculation.
i am attempting to divide games played by total wins with the below code.
the problem is when I dim help and do the calculation for help and then try to display the result i get the
ADODB.Recordset error '800a0cc1'

Item cannot be found in the collection corresponding to the requested name or ordinal. error.

any help would be great.

dim thetotal,per
thetotal = CLng(RS("standings_Won"))+ CLng(RS("standings_Lost"))
help = thetotal/CLng(rs(standings_won)) %>
<tr>
<td align="left">
<font face="Arial" Size="1">
<a href="team1.asp?SEARCH=ID&amp;ZONE=<%=RS("ZoneID")%>&amp;TEAMID=<%=RS("TeamID")%>&amp;leagueid=<%=leagueid1%>">
<%=RS("TeamName")%></a>
</font>
</td>
<td align="center">
<font face="Arial" Size="2">
<%=RS("standings_Won")%>
</font>
</td>
<td align="center">
<font face="Arial" Size="2">
<%=RS("standings_Lost")%>
</font>
</td>
<td align="center">
<font face="Arial" Size="2">
<%= thetotal%>
</font>
</td>
<td>
<font face="Arial" Size="2">
<%= help%>
</font>
</td>
</tr>
<%RS.MoveNext
Loop
RS.close%>

RE: ADODB.Recordset error '800a0cc1' Item cannot be found in the collection corresponding to the reques

I think you are missing quotes on this line:

help = thetotal/CLng(rs(standings_won)) %>

CODE

help = thetotal/CLng(rs("standings_won")) %> 

-George
Microsoft SQL Server MVP
My Blogs
SQLCop
twitter
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom

RE: ADODB.Recordset error '800a0cc1' Item cannot be found in the collection corresponding to the reques

(OP)
WOW! i am totally blind!
Thanks!

RE: ADODB.Recordset error '800a0cc1' Item cannot be found in the collection corresponding to the reques

Forest... trees... sometimes all you need is another pair of eyes looking at the problem.

-George
Microsoft SQL Server MVP
My Blogs
SQLCop
twitter
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close