|
This error message normally means that the fields aren't in the recordset. Have you checked the obvious: Is the Recordset at EOF? (i.e. does rsq.EOF = True) If not, you could put some debug code in place to spit out the field names returned in the recordset.. just loop through the Fields collection of the recordset (rsq.Fields property) and output the name using the numeric index of the field... ie For x = 0 to rsq.Fields.Count - 1 Response.Write(rsq.Fields(x).Name + " , ") Next Note (I think the collection is zero based from memory, I may be wrong..) That ought to tell you what name you need to use to reference the fields.. Regards.. Stu -----Original Message----- From: Goodbar, Loyd (ETS - Water Valley) [mailto:LGoodbar@xxxxxxxxxxxxxx] Sent: Tuesday 15 July 2003 13:35 To: 'midrange-l@xxxxxxxxxxxx' Subject: Access "non-SQL" databases with ADO? I didn't see anything relevant in the archives... We're using ASP (not .NET) and ADO to access databases on SQL server. However, there's also some AS/400 databases we need to access. I've found that I can use ADO against "SQL-defined" databases on the AS/400, but I can't query files defined by DDS. DDS defined files get this error: "Error Type: ADODB.Recordset (0x800A0CC1) Item cannot be found in the collection corresponding to the requested name or ordinal." The line receiving this error is: response.write "<tr><td>" & rsq("name") & "</td><td>" & rsq("company") & "</td><td>" & rsq("id") & "</td></tr>" All three fields are character types. It doesn't matter if the field names are in upper or lower case, I receive the same error. Any help appreciated, thanks! Loyd -- Loyd Goodbar Programmer/analyst BorgWarner Incorporated ETS/Water Valley 662-473-5713 lgoodbar@xxxxxxxxxxxxxx _______________________________________________ This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l. If you are not the intended recipient, please notify the sender by return email and then delete the message from your computer. The Skandia UK Group reserves the right to monitor e-mail communications through its networks. No contract may be concluded on behalf of the Skandia UK Group by email. Skandia Life Assurance (Holdings) Limited Skandia Life Assurance Company Limited Skandia MultiFUNDS Limited, Skandia Investment Management Limited. Registered Nos: 1606702, 1363932, 1680071, 4227837, England Registered Office: Skandia House, Portland Terrace, Southampton SO14 7EJ, United Kingdom Royal Skandia Life Assurance Limited Registered No : 24916 Isle of Man Registered Office: Skandia House, King Edward Road, Onchan, Isle of Man IM99 1NU, British Isles Skandia Life Assurance Company Limited, Skandia MultiFUNDS Limited, Skandia Investment Management Limited and Royal Skandia Life Assurance Limited are authorised and regulated by the Financial Services Authority for UK investment business. Internet: www.skandia.co.uk
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.