Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access ASP
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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
Reply With Quote
  #2 (permalink)  
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
Reply With Quote
  #3 (permalink)  
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:53 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.