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 Type: Either BOF or EOF is True

Error Type: Either BOF or EOF is True

Scheduled Pinned Locked Moved ASP.NET
databasesysadminhelp
2 Posts 2 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.
  • S Offline
    S Offline
    Skanless
    wrote on last edited by
    #1

    I am not sure why I am getting this error if I have included: "IF NOT GOSSearchRS.BOF AND GOSSearchRS.EOF THEN". I hate to include the whole code but it may prove necessasry to get a response. It runs OK when I submit an empty value but if I search for something that's not in the database I get the error. See Error and Source Code Below. Error Type: ADODB.Recordset (0x800A0BCD) Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. /gregstore/GregStoreMPSearchPage.asp, line 117 Source Code: <% 'Get Search Phrase SearchFor = TRIM( Request( "searchfor" ) ) 'Open database connection Set dbCon = Server.CreateObject( "ADODB.Connection" ) dbCon.Open "GregStore" %> Welcome to Greg's Online Store - Search

    Welcome to Greg's Online Store!!

    Shopping Cart | Account


    <% 'Get The curent Page pg = TRIM(Request( "pg" )) IF pg = "" THEN pg = 1 SET GOSSearchRS = Server.CreateObject( "ADODB.Re

    A 1 Reply Last reply
    0
    • S Skanless

      I am not sure why I am getting this error if I have included: "IF NOT GOSSearchRS.BOF AND GOSSearchRS.EOF THEN". I hate to include the whole code but it may prove necessasry to get a response. It runs OK when I submit an empty value but if I search for something that's not in the database I get the error. See Error and Source Code Below. Error Type: ADODB.Recordset (0x800A0BCD) Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. /gregstore/GregStoreMPSearchPage.asp, line 117 Source Code: <% 'Get Search Phrase SearchFor = TRIM( Request( "searchfor" ) ) 'Open database connection Set dbCon = Server.CreateObject( "ADODB.Connection" ) dbCon.Open "GregStore" %> Welcome to Greg's Online Store - Search

      Welcome to Greg's Online Store!!

      Shopping Cart | Account


      <% 'Get The curent Page pg = TRIM(Request( "pg" )) IF pg = "" THEN pg = 1 SET GOSSearchRS = Server.CreateObject( "ADODB.Re

      A Offline
      A Offline
      Akhilesh Yadav
      wrote on last edited by
      #2

      why you want to put this condition IF NOT GOSSearchRS.BOF AND GOSSearchRS.EOF THEN This condition reads if recordset is not BOF and recordset is EOF then do the execution. If recordset is already EOF the from where u will get the new record. try this IF NOT GOSSearchRS.EOF THEN

      cheers, Akhilesh Yadav

      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