If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > either bof or eof is true, or the current record has been deleted

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-11-03, 14:07
ronnygoossens ronnygoossens is offline
Registered User
 
Join Date: May 2002
Posts: 8
either bof or eof is true, or the current record has been deleted

hi guys,

i have the following issue.

Have a delphi 5 program running against an access 97 database.
This program runs fine one 1 computer , but not on other computers.
On 1 computer is runs without this error msg, on some other it returns this annoying error.

This issue is that I cannot seem to close an ado record set , when this was opened when in effect not returnig any records.
So indeed eof or bof is immediately true. I am even check for this
and try to close my query but then i get this error msg.

I have inherited this program of another programmer and he is using:

if adoquery1.active = true then
adoquery1.active := false


why i did this , i wound't know.

Are there any settings on access or the ado setup i caould perform?
Somebody any ideas?


ronny
Reply With Quote
  #2 (permalink)  
Old 11-16-03, 14:03
Kearney Kearney is offline
Registered User
 
Join Date: Nov 2003
Location: Scotland
Posts: 7
Post

Not absolutely sure of this, but thought I'd mention it anyway.

I had a problem with this a month ago, and kind of remember had something to do with .AddNew method of the ado recordset.

My problem stemmed from the fact that I deleted my table and then repopulated from another table within the db. However, if trying to add a new record to the underlying table I need to use Adodc1.Recordset.AddNew to ensure that when you open your recordset, then BOF is set to False and your table is not empty.

don't understand why it works on 1, but not on others. sounds to me that that one computer has something specific to that PC that's making the program work.

If this doesn't help, hope it points you in the right direction. Only talking about what worked for me. I spent a couple of days on that error.

Stuart
Reply With Quote
  #3 (permalink)  
Old 11-17-03, 03:36
ronnygoossens ronnygoossens is offline
Registered User
 
Join Date: May 2002
Posts: 8
Quote:
Originally posted by Kearney
Not absolutely sure of this, but thought I'd mention it anyway.

I had a problem with this a month ago, and kind of remember had something to do with .AddNew method of the ado recordset.

My problem stemmed from the fact that I deleted my table and then repopulated from another table within the db. However, if trying to add a new record to the underlying table I need to use Adodc1.Recordset.AddNew to ensure that when you open your recordset, then BOF is set to False and your table is not empty.

don't understand why it works on 1, but not on others. sounds to me that that one computer has something specific to that PC that's making the program work.

If this doesn't help, hope it points you in the right direction. Only talking about what worked for me. I spent a couple of days on that error.

Stuart
Reply With Quote
  #4 (permalink)  
Old 11-17-03, 03:37
ronnygoossens ronnygoossens is offline
Registered User
 
Join Date: May 2002
Posts: 8
Re: either bof or eof is true, or the current record has been deleted

hi stuart,

thx for the reply, finally i found the solution.... it is a know bug in delphi 5 and i had to apply a upgrade pack especially for this ado - bug...

greetings,

rony
Reply With Quote
  #5 (permalink)  
Old 03-25-04, 04:21
Motho Motho is offline
Registered User
 
Join Date: Mar 2004
Posts: 7
Re: either bof or eof is true, or the current record has been deleted

Quote:
Originally posted by ronnygoossens
hi stuart,

thx for the reply, finally i found the solution.... it is a know bug in delphi 5 and i had to apply a upgrade pack especially for this ado - bug...

greetings,

rony
Hi Stuart,

I am experiencing a similar problem. I have applied the upgrade but the thing is not working. I using delphi 5.

Thanks Mothobi
Reply With Quote
  #6 (permalink)  
Old 03-25-04, 07:12
Kearney Kearney is offline
Registered User
 
Join Date: Nov 2003
Location: Scotland
Posts: 7
Hi Motho,

I'm using vb.net.

My problem was using classic ADO as converted over from vb6 to vb.net. I need to add in Adodc1.Recordset.AddNew and Adodc1.Recordset.Update.

Regarding Delphi 5. Someone above reported it being a known error.

Good luck
Stuart
Reply With Quote
  #7 (permalink)  
Old 03-26-04, 02:01
Motho Motho is offline
Registered User
 
Join Date: Mar 2004
Posts: 7
Hi Stuart,

Thanks for the reply. The problem with that solution is that it applied only on Delphi 5 Professional not Enterprise. I got the solution, I have installed Delph 7 Enterprise and the error is no more.

Thanks,

Motho
Reply With Quote
  #8 (permalink)  
Old 03-30-04, 13:04
RDWilson2 RDWilson2 is offline
Registered User
 
Join Date: Feb 2003
Location: San Antonio, TX
Posts: 31
Just a passing comment

Delphi 5 has known issues with ADO. D6 and/or D7 have much better success with ADO.
__________________
Ralph D. Wilson II
email: rwilson@thewizardsguild.com
URL: http://thewizardsguild.com

"Any sufficiently advanced technology is indistinguishable from magic." A.C. Clark
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 On
Pingbacks are On
Refbacks are On