Ado Error 0x800a0cc1
visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 6 of 6 Thread: ADODB.Fields (0x800A0CC1)!!! Tweet Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 12-28-05,04:58 #1 peelola View Profile View Forum Posts Registered User Join Date Dec 2005 Posts 6 Unanswered: ADODB.Fields (0x800A0CC1)!!! I get the error ADODB.Fields (0x800A0CC1) Item cannot be found in the collection corresponding to the requested name or ordinal. I know what is happening in that there is no data for the specified field. Basically I have a crosstab in access displaying the results of a query, but I am unable to view this via my asp page as not all the fields have a value as yet. I think I can over come this either one of two ways. 1. Get the cross tab to display 0 instead of displaying nothing when their is nothing to count or 2. Somehow get the asp page to return a null or 0 value if nothing appears from the query. The query in access is as follows. Code: TRANSFORM Count(statusreporthsc.SDC1) AS CountOfSDC1 SELECT statusreporthsc.date2, Count(statusreporthsc.SDC1) AS [Total Of SDC1] FROM statusreporthsc GROUP BY statusreporthsc.date2 PIVOT statusreporthsc.Category; and the section of the asp page displaying the results is as follows Code:
help? Post your question and get tips & solutions from a community of 418,417 IT Pros & Developers. It's quick & easy. ADODB.Recordset (0x800A0CC1) Error P: n/a Joe I want to add a new record to database, and then retrives the @@IDENTITY value for this ne added record, and the fields of this record. However, it has the following error on line varNewID = objRS("NewMsgID" ADODB.Recordset (0x800A0CC1 Item cannot be found in the collection corresponding to the requested name or ordinal sqlStmt= "INSERT INTO AddressValidation " & "(RequestXML, ResponseXML) " & "VALUES (" & "'" & strRequestXML & "'" & "," http://www.dbforums.com/showthread.php?1206538-ADODB-Fields-(0x800A0CC1)!!! & "'" & strResponseXML & "'" & "); sqlStmt = sqlStmt & "SELECT @@IDENTITY AS NewMsgID; Set objConn=Server.CreateObject("ADODB.Connection" objConn.Open strConnec Set objRS = objConn.Execute(sqlStmt varNewID = objRS("NewMsgID") '<============= ERROR HERE!! Response.Write "varNewID = " & varNewID & "
sqlStmt = sqlStmt & "SELECT * FROM AddressValidation WHERE AddressValidationID = " & "'" & varNewID & "'" & "; Set objRS = objConn.Execute(sqlStmt varXMLRequest = objRS("RequestXML" varXMLRequest = objRS("ResponseXML" Response.Write "varXMLRequest https://bytes.com/topic/asp-classic/answers/56619-adodb-recordset-0x800a0cc1-error = " & varXMLRequest & "
Response.Write "varXMLRequest = " & varXMLRequest & "
objConn.Close( Set objConn = Nothin Set objRS = Nothing Jul 19 '05 #1 Post Reply Share this Question 6 Replies P: n/a Bob Barrows [MVP] Joe wrote: I want to add a new record to database, What database? Bob Barrows -- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don't check it very often. You will get a quicker response by posting to the newsgroup. Jul 19 '05 #2 P: n/a joe MS-SQL 2K Jul 19 '05 #3 P: n/a Manohar Kamath [MVP] Add a "SET NOCOUNT ON;" just before your INSERT statement. The INSERT row count is being returned, before the @@IDENTITY is, and hence the error. -- Manohar Kamath Editor, .netWire www.dotnetwire.com "Joe"
is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can http://www.webdeveloper.com/forum/showthread.php?47219-Error-ADODB-Recordset-(0x800A0CC1) post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 2 of 2 Thread: Error:ADODB.Recordset (0x800A0CC1) Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded ado error Mode 10-22-2004,07:12 AM #1 Tortured Lady View Profile View Forum Posts Registered User Join Date Oct 2004 Posts 6 Error:ADODB.Recordset (0x800A0CC1) hiii,, i feel that my previous question is a little bit unclear so this is another question ... i am getting this error .. ------------------- Error Type: ADODB.Recordset (0x800A0CC1) Item cannot be found in the ado error 0x800a0cc1 collection corresponding to the requested name or ordinal. --------------- this is my code ... Code: <% Posted = Request.Form("posted") If Posted = "" Then %>
<% else 'Function FixQuotes(theString) 'fixQuotes = Replace (theString, "'", "''" ) 'end Function username = request.form("uname") passw