Error Type: ADODB.Recordset (0x800A0BCD)

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Error Type: ADODB.Recordset (0x800A0BCD)

    Hi!

    I have a ASP page that generates an excel report. It works fine if there are
    records found, however, if no records are found I would like to call the
    below listed function instead of getting the following error that I am
    presently receiving:

    Error Type:
    ADODB.Recordset (0x800A0BCD)
    Either BOF or EOF is True, or the current record has been deleted. Requested
    operation requires a current record

    ' Move to the first record
    rs.movefirst <------- Errors here
    if rs.eof then 'new code

    ' Start a loop that will end with the last record
    do while not rs.eof
    ...
    ' Move to the next record
    rs.movenext
    ' Loop back to the do statement
    loop
    else 'new code
    call norecordsfound() 'new code
    end if 'new code
    %>

    Thank you in advance.

    Chuck




    Chuck Guest

  2. Similar Questions and Discussions

    1. Cannot serialize interface ADODB.Recordset
      When returning an ADO Recordset via Web Services I get the following error: Cannot serialize interface ADODB.Recordset Any Ideas? --...
    2. Error Type: ADODB.Command (0x800A0BB9)???
      Dear friends, I am working on a App. at my work place, now wanting to set it up at home but for some reason I keep getting this error :...
    3. Help with ADODB.Recordset Error (0x800A0BB9)
      Hello, I'm having problems resolving ADODB.Recordset Error 0x800A0BB9. I'm running tutorial code from the Wrox Press book: Beginning ASP 3.0; Ch....
    4. Object Reference Error on ADODB.RecordSet Fields
      One of my developers is working on a .Net web app that has a wee bit o legacy code in Page_Onload: .... Dim MySelect as String = "SELECT User...
    5. Connection error: ADODB.Recordset (0x800A0E7D)
      I have been copying and pasting code and this has been working, but now I get this error: Error Type: ADODB.Recordset (0x800A0E7D) Operation is...
  3. #2

    Default Re: Error Type: ADODB.Recordset (0x800A0BCD)

    You don't need to use rs.Movefirst anyway, since it'll start at the
    beginning. But, your issue is that there are no records in your recordset.

    If Not rs.EOF Then
    '''your looping code
    Else
    response.write "There are no records."
    End If

    Ray at work

    "Chuck" <securitypro@cfl.rr.com> wrote in message
    news:eEWY06%23lDHA.2772@TK2MSFTNGP10.phx.gbl...
    > Hi!
    >
    > I have a ASP page that generates an excel report. It works fine if there
    are
    > records found, however, if no records are found I would like to call the
    > below listed function instead of getting the following error that I am
    > presently receiving:
    >
    > Error Type:
    > ADODB.Recordset (0x800A0BCD)
    > Either BOF or EOF is True, or the current record has been deleted.
    Requested
    > operation requires a current record
    >
    > ' Move to the first record
    > rs.movefirst <------- Errors here
    > if rs.eof then 'new code
    >
    > ' Start a loop that will end with the last record
    > do while not rs.eof
    > ...
    > ' Move to the next record
    > rs.movenext
    > ' Loop back to the do statement
    > loop
    > else 'new code
    > call norecordsfound() 'new code
    > end if 'new code
    > %>
    >
    > Thank you in advance.
    >
    > Chuck
    >
    >
    >
    >

    Ray at Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139