Article View: borland.public.cppbuilder.database.ado
Article #321TADOQuery problem
From: Cenk
Date: Fri, 04 Aug 2006 15:56
Date: Fri, 04 Aug 2006 15:56
23 lines
1539 bytes
1539 bytes
Hi,
I wanna use multiple select statements as below but it gives error, would
you please help?
sample code segment.
TADOQuery *CountQuery;
CountQuery= new TADOQuery (this);
CountQuery->Connection = ADOConnection1;
CountQuery->SQL->Add ("select COUNT(bid) from ["+table+"]");
CountQuery->Open ();
count = CountQuery->FieldByName ("COLUMN1")->AsInteger;
CountQuery->SQL->Clear(); --------> CAN NOT PERFORM THIS OPERATION ON AN
OPEN DATASET!
CountQuery->SQL->Add ("select [bid],[fTime] from ["+table+"] order by
[fTime] ASC");
CountQuery->Open ();
How can i use multiple TADOQuery?
Technical Details
Message-ID:
<44d36e64@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10698b,8c96c50763dd0dab,start X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Cenk" <cenk1536@yahoo.com> From: "Cenk" <cenk1536@yahoo.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: TADOQuery problem Date: Fri, 4 Aug 2006 18:56:57 +0300 Lines: 25 Organization: Freelance X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 NNTP-Posting-Host: 81.214.143.82 Message-ID: <44d36e64@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1154707044 81.214.143.82 (4 Aug 2006 08:57:24 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail