Re: Error with reponse.write

From: Bob Barrows [MVP] (reb01501_at_NOyahoo.SPAMcom)
Date: 04/22/04


Date: Thu, 22 Apr 2004 08:48:43 -0400

I can't help without knowing what's in the recordset. Save your recordset to
an xml file and post the contents of the xml file in your reply to this
message. To save your recordset, do this (after opening it):

adoRecordSet.Save "recordset.xml", 1

You will be able to open the xml file in Notepad and copy the text into your
reply post.

Bob Barrows

CD wrote:
> Thanks for the reply
>
> I still get error on that line.
>
> Error Type:
> Microsoft VBScript runtime (0x800A000D)
> Type mismatch
> /adlookup/results.asp, line 89
>
>
> "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
> news:uxe2cb%23JEHA.620@tk2msftngp13.phx.gbl...
>> CD wrote:
>>> I have code from a book that appears work except for the writing the
>>> reuslts. I am querying AD and writing the results. I get the
>>> error:
>>>
>>> Error Type:
>>> Microsoft VBScript runtime (0x800A000D)
>>> Type mismatch
>>> /adlookup/results.asp, line 89
>>>
>>> Which is the line> Response.Write "<TD>" &
>>> adoRecordSet.Fields("cn") & "</TD>"
>>>
>>
>> Response.Write "<TD>" & adoRecordSet.Fields("cn").Value & _
>> "</TD>"
>>
>> 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.

-- 
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.


Relevant Pages

  • Re: New MSSecure.XML Version 2005.07.12.0 Now Available
    ... This posting is provided "AS IS" with no warranties, ... If newsgroup discussion with experts and MVPs is unable to solve a problem ... > Is there an update for the MSOffice XML file for the MS Word ... >>> Microsoft Baseline ...
    (microsoft.public.security)
  • Re: Simple XML Example
    ... > I have a very simple query that gets a few records from a database. ... > data to an XML file, but I'm lost on the syntax for actually posting ... Please reply to the newsgroup. ... quicker response by posting to the newsgroup. ...
    (microsoft.public.inetserver.asp.general)
  • Re: Whats the best way to open a recordset for insert only?
    ... recordset so that I can call AddNew on it, ... Please reply to the newsgroup. ... a quicker response by posting to the newsgroup. ...
    (microsoft.public.data.ado)
  • Re: GetRows Problem
    ... Microsoft MVP ... Please reply only to the newsgroup so that others can benefit. ... This posting is provided "AS IS" with no warranties, ... My recordset contains the data. ...
    (microsoft.public.data.ado)
  • Re: Reading XML Recordsets
    ... > I have a little script that reads an XML file from a remote server. ... > recordset to a file and then read it back in again. ... > <%dim objWinHttp ... Please reply to the newsgroup. ...
    (microsoft.public.inetserver.asp.db)