Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Error on page

Error on page

Scheduled Pinned Locked Moved ASP.NET
helpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BravoTwoZero
    wrote on last edited by
    #1

    Hi All, I am having problem with bof and eof. can any body please help? Error Type: ADODB.Field (0x80020009) Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. :rolleyes: Many Thanks.. Bravo Two Zero A pen is mighter then a sword.

    S P 2 Replies Last reply
    0
    • B BravoTwoZero

      Hi All, I am having problem with bof and eof. can any body please help? Error Type: ADODB.Field (0x80020009) Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. :rolleyes: Many Thanks.. Bravo Two Zero A pen is mighter then a sword.

      S Offline
      S Offline
      Steve McLenithan
      wrote on last edited by
      #2

      that means that the sql query executed returned 0 records. ******************** * $TeVe McLeNiThAn ********************

      1 Reply Last reply
      0
      • B BravoTwoZero

        Hi All, I am having problem with bof and eof. can any body please help? Error Type: ADODB.Field (0x80020009) Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. :rolleyes: Many Thanks.. Bravo Two Zero A pen is mighter then a sword.

        P Offline
        P Offline
        Paul Ingles
        wrote on last edited by
        #3

        As Steve pointed out, you're trying to access a record's data but you've either gone past the end of the records, or none were returned. If you use Do While Not Recordset.EOF then you can loop through and anything done inside the loop will be on valid records (providing you use Recordset.MoveNext inside the loop). Alternatively, use If Not Recordset.EOF if you're only expecting to have a single record returned. -- Paul "If you can keep your head when all around you have lost theirs, then you probably haven't understood the seriousness of the situation." - David Brent, from "The Office" MS Messenger: paul@oobaloo.co.uk Sonork: 100.22446

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups