🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1007

adding datasets

#1007
From: siraj
Date: Tue, 30 Nov 2004 14:08
21 lines
1978 bytes
Hi!
Iam using c++ builder 5 enterprise edition. MS access 2000 is my database.
I have a listbox in my application which contains date/Time values.
For example: an item in listbox is 12.11.2004 11:12:24 - 12.11.2004 13:12:24
When ever an item is selected on the listbox, I select the values that are
between the time period and display on TDBChart.
I used TADOQuery. TDBChart datasource is TADOQuery.
So far it is fine.
If I enable the multiselect option on the list box, the user can select
multiple items on the listbox not necessarily in sequential order.
For example: items 1,3,6 are selected.
Now i have to display the values that are between the time specified by
item1, time specified by tem 3 and time specified by item 6.
How can i display the combination of these recordset on the TDBChart.
I can use "where time between and time between....." in the SQL query.
If 50 items are select, then i have to 50 time between in my sql.
Is there any other method by which I can add the dataset generated by each
item selection of the listbox and display on the DBChart.
Is this the good way?
Regards,
siraj
Technical Details
Message-ID: <41ac7eeb@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,c868be09364c68f,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "siraj" <siraj.sm@omnisens.ch>
From: "siraj" <siraj.sm@omnisens.ch>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: adding datasets
Date: Tue, 30 Nov 2004 15:08:42 +0100
Lines: 24
Organization: omnisens
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 128.179.67.34
Message-ID: <41ac7eeb@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1101823723 128.179.67.34 (30 Nov 2004 06:08:43 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail