Article View: borland.public.cppbuilder.database.ado
Article #5357Please help me !!
From: andy
Date: Sun, 10 Jun 2001 10:35
Date: Sun, 10 Jun 2001 10:35
16 lines
1436 bytes
1436 bytes
Why this code is not working ?? I want to use recordset in ADO
----------------------------------------------------------------------------
----------
_di__Recordset Record = CoRecordset::Create(NULL);
Record->Open(Variant("SELECT * FROM authors"),
Variant("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\BIBLIO.MDB;Persist
Security Info=False"), ctKeyset,ltOptimistic,cmdText);
ShowMessage("Record count = " + IntToStr(Record->AbsolutePosition));
----------------------------------------------------------------------------
------------
it sends me :
"Operation is not allowed when the object is closed"
Technical Details
Message-ID:
<3b234d59$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,20f051037ca2e641,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-06-10 03:40:13 PST From: "andy" <Mihalik@novycas.sk> Newsgroups: borland.public.cppbuilder.database.ado Subject: Please help me !! Date: Sun, 10 Jun 2001 12:35:45 +0200 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 NNTP-Posting-Host: 212.5.212.217 Message-ID: <3b234d59$1_2@dnews> X-Trace: dnews 992169305 212.5.212.217 (10 Jun 2001 03:35:05 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews