Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Access ASP Using ASP with Microsoft Access databases. For Access questions not specific to ASP, please use the Access forum. For more ASP forums, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access ASP 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 March 1st, 2011, 02:55 AM
Registered User
 
Join Date: Mar 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Either BOF or EOF is True,

hi to all there,

i have a problem with this error :

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

/arabic/index.asp, line 0
 
Old March 1st, 2011, 08:53 AM
Authorized User
Points: 448, Level: 7
Points: 448, Level: 7 Points: 448, Level: 7 Points: 448, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2011
Posts: 86
Thanks: 1
Thanked 12 Times in 12 Posts
Default

Hi Akram,


you give only very little information, so I have to guess here.

Are you trying to loop through an ADODB.recordset in a while loop or something?
Then please first check if you have records returned by testing eof, like
Code:
Set oRS=Server.CreateObject("ADODB.recordset")
oRS.execute "SELECT * FROM employees", oConn
if not oRS.eof then
   While not oRS.eof
      ' Do something with the data here
      oRS.movenext
   Loop
end if
 
Old March 1st, 2011, 09:07 AM
Registered User
 
Join Date: Mar 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default THanks alot

Dear disel thanks alot yes your right ......problem is solved...




Quote:
Originally Posted by disel2010 View Post
Hi Akram,


you give only very little information, so I have to guess here.

Are you trying to loop through an ADODB.recordset in a while loop or something?
Then please first check if you have records returned by testing eof, like
Code:
Set oRS=Server.CreateObject("ADODB.recordset")
oRS.execute "SELECT * FROM employees", oConn
if not oRS.eof then
   While not oRS.eof
      ' Do something with the data here
      oRS.movenext
   Loop
end if




Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Either BOF or EOF is True, or the current record has been deleted. Hannibal Classic ASP Basics 1 April 6th, 2010 01:18 PM
"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
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.