Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 16th, 2005, 08:37 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default ADODB.Recordset (0x800A0CC1)

Code:
            
set rsAddAgent = con.execute("INSERT INTO `net_company` (agencyid, companyid, apicorp_id, apiusername, password, ip, port, agencyoffice) "_
&"VALUES('" & UCase(Trim(agencyid)) & "','" & UCase(Trim(consolidatorid)) & "','" & Trim(rsConDetails("apicorp_id")) & "',"_
&"'" & Trim(rsConDetails("apiusername")) & "','" & Trim(rsConDetails("password")) & "','" & Trim(rsConDetails("ip")) & "','20002',"_
&"'" & Trim(rsConDetails("agencyofficeid")) & "')", adCmdText)
Error Type:
ADODB.Recordset (0x800A0CC1)
Item cannot be found in the collection corresponding to the requested name or ordinal.
asp/admin/companies/add_companies2.asp, line 605

I keep getting this error on this lines??

Cant spot it?

Picco

www.crmpicco.co.uk
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
  #2 (permalink)  
Old November 16th, 2005, 09:44 AM
Friend of Wrox
 
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Looks like one of the fields in rsConDetails you are trying to access does not exist.

As you are inserting an "agencyofficeid" field into an "agencyoffice" field, should it also be "agencyoffice".

If not, just try Response.Write'ing each of the rsConDetails fields out, that should pinpoint it.

  #3 (permalink)  
Old November 16th, 2005, 10:28 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

thank chris, i found the error. thats what it was, i thought it would still insert into the db though - but it just threw an error instead.



www.crmpicco.co.uk


Similar Threads
Thread Thread Starter Forum Replies Last Post
CHAPTER15-ADODB.Recordset (0x800A0CC1) trevo4f BOOK: Beginning ASP 3.0 1 April 4th, 2008 07:54 PM
ADODB.Recordset error lance Wrox Book Feedback 2 February 23rd, 2007 02:37 PM
ADODB Recordset sporkman43 Classic ASP Basics 4 November 9th, 2006 04:51 AM
ADODB.Recordset (0x800A0CB3)Current Recordset does tks_muthu Classic ASP Databases 0 June 16th, 2005 07:22 AM
How to get adodb.record from adodb.recordset John Pennington Pro VB Databases 1 November 20th, 2004 06:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.