BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TADOTable recordcount error

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Ken Hartnett
Guest





PostPosted: Fri May 28, 2004 2:51 pm    Post subject: TADOTable recordcount error Reply with quote



Delphi 6 Enterprise.

I am using 2 TADOTable components in a master/detail relationship where
a button a form is enabled depending on whether or not there are any
detail records which are maintained in an Infopower grid. I check the
detail record count (adoTabel.RecordCount) in the grids's OnExit event
or any time a record is deleted. In both cases I get an EOleException
'Either BOF or EOF is true, or the current record has been deleted.
Requested operation requires a current record." The same thing occurs if
I use a TADOQuery to get a count of the the number of records and if I
use not adoTable.IsEmpty.

Any ideas on how to get the record count of the ADO table?

Thank you.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.