Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 6th, 2010, 06:54 AM
Authorized User
 
Join Date: Feb 2006
Posts: 63
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Hannibal
Default Error: Either BOF or EOF is True, or the current record has been deleted.

Hi,
I am trying to fetch the data corresponding to the dropdown box and then filling textbox with the value from database.

Code:
set Dropdownvalue = Request.Form("Select1")
 if Dropdownvalue <> "--Select--" Then 
striSQL = "SELECT Stu_Name FROM tbl_College where Stu_Name = '" & Dropdownvalue& "' " 
oRsss.Open striSQL, conn
The "--Select--" is not available in the database, I am putting that in the dropdown box.

I am getting the following error:
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

How to fix this?
Thank you
 
Old April 6th, 2010, 01:18 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

DEBUG DEBUG DEBUG
Code:
set Dropdownvalue = Request.Form("Select1")
Response.Write "DEBUG: Dropdownvalue is '" & dropdownvalue & "'<hr>"
if Dropdownvalue <> "--Select--" Then 
    striSQL = "SELECT Stu_Name FROM tbl_College where Stu_Name = '" & Dropdownvalue& "' " 
    Response.Write "DEBUG SQL: " & striSQL & "<hr>"
    oRsss.Open striSQL, conn
    If oRsss.EOF Then 
        Response.Write "DEBUG:  No records matching that SQL!!"
    Else
       ...
And so on.





Similar Threads
Thread Thread Starter Forum Replies Last Post
"Either BOF or EOF is True" need help! murshed Classic ASP Databases 4 March 18th, 2008 03:43 PM
Random record from objRS - why is EOF or BOF True? jfrizelle Classic ASP Databases 0 February 5th, 2008 07:24 AM
Re-try - BOF-EOF error JpaulH Access VBA 2 May 4th, 2006 02:16 PM
Access to Excel - BOF or EOF error JpaulH Access VBA 1 May 3rd, 2006 04:30 PM
Either BOF or EOF is True, or the current record h gilgalbiblewheel Classic ASP Databases 3 March 9th, 2005 07:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.