🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Lookup Fields

#3424
From: Albert Fowler
Date: Sun, 18 Aug 2002 15:16
22 lines
2052 bytes
I have a access dbase with about 8 million records. A lot of the records
have the same data in certain fields. I have used Lookup fields to cut down
on the size. What I am trying to do is make it so the user can build filters
using several fields. Is there a quick way to obtain a non-duplicate list of
the data in certain fields, so i can make a list of multiple choice as the
filter is built.
Example:
A record has fileds for Company,Address,City,St,Zipcode,Phone,Fax,Category
code1,Category code2,Category code3

What I would like to do is create ComboBox controls in succession so that
when the user selects a state, it filters a combobox with zipcodes to only
display the zipcodes in that state, with no duplicates, then they select a
zipcode and it filters a combobox with cities to only display cities in that
zipcode with no duplicates etc, etc etc. Then it builds a filter using " AND
" to filter the Main dataset.

I know I can iterate through and use TDuplicates << dpIgnore, but with 8
million records this seems very time consuming.
It sure seems there has to be a better way, what am i missing?
Thanks in advance,
Albert Fowler
Technical Details
Message-ID: <3d5fba4d@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,5192a2fa0b41982e,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-08-18 08:29:47 PST
From: "Albert Fowler" <webmaster@codegeneration.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Lookup Fields
Date: Sun, 18 Aug 2002 10:16:24 -0500
Lines: 24
Organization: Code Generation
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 148.63.96.66
Message-ID: <3d5fba4d@dnews>
X-Trace: dnews 1029683789 148.63.96.66 (18 Aug 2002 08:16:29 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews!not-for-mail