Article View: borland.public.cppbuilder.database.ado
Article #4921Re: How to avoid TADOQuery's EOF-BOF-error
From: Mike Coldewey
Date: Thu, 30 Aug 2001 14:49
Date: Thu, 30 Aug 2001 14:49
21 lines
1693 bytes
1693 bytes
Before I got the patch I just concluded the iteration through the query results with a First() (just before I closed the query). That seemed to eliminate the error. Mike "JR" <jake78@mbnet.fi> wrote in message news:3b80afc2_1@dnews... > "Either BOF or EOF is true or the current record has been deleted". > > I know it could be solved with BCB and ADOExpress updates but I'm currently > using a trial version of BCB so the updates can't be installed. > > As far as I know, the error happens when trying to close an empty dataset. > So I've been trying to insert a record into TADOQuery before closing it. > After calling TADOQuery->Insert( ), TADOQuery->IsEmpty( ) returns false but > TADOQuery->RecordCount is still 0 and the exception is thrown. > > Any clues? > >
Technical Details
Message-ID:
<3b8e51ea$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-out.nibble.net!news-in.nibble.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3b80afc2_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,f24c3aedc1e42da3 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-08-30 08:01:53 PST From: "Mike Coldewey" <No_Spam4m_coldewey@hotmail.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3b80afc2_1@dnews> Subject: Re: How to avoid TADOQuery's EOF-BOF-error Date: Thu, 30 Aug 2001 09:49:34 -0500 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 207.88.203.226 Message-ID: <3b8e51ea$1_2@dnews> X-Trace: dnews 999182826 207.88.203.226 (30 Aug 2001 07:47:06 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-out.nibble.net!news-in.nibble.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews