Article View: borland.public.cppbuilder.database.ado
Article #4782TADOQuery error Active property needs current record
From: Steve Love
Date: Mon, 22 Oct 2001 08:29
Date: Mon, 22 Oct 2001 08:29
27 lines
1596 bytes
1596 bytes
Hi all I've narrowed this down to the simplest possible demo: Connect a TADOQuery object to a valid DB and write a select statement which you know will return 0 records. Set the Active Property to true Set the Active Property to false I'm getting: "Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record" Which seems nonsense to me. The upshot is, the Active property gets set to false anyway, so in my code I can maybe catch the exception and ignore it? I'm using BCB5 sp1 Win2k sp1 Latest MDAC 2.6 This isn't occurring on my WinNT4/Access97 (old) MDAC 2.6. Thanks Steve
Technical Details
Message-ID:
<20011022.8290040@sl.engineering>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,cac0345c2cb6ef96,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-10-22 01:23:57 PST From: Steve Love <steve.love2@virgin.net> Date: Mon, 22 Oct 2001 08:29:00 GMT Message-ID: <20011022.8290040@sl.engineering> Subject: TADOQuery error Active property needs current record Reply-To: Steve Love <steve.love2@virgin.net> X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Newsgroups: borland.public.cppbuilder.database.ado X-Newsreader: Mozilla/3.0 (compatible; StarOffice/5.2;Win32) NNTP-Posting-Host: 213.38.79.146 X-Trace: dnews 1003738978 213.38.79.146 (22 Oct 2001 01:22:58 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews