🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to Sort and Select data in a lookup field

#2070
From: Claude
Date: Mon, 01 Dec 2003 22:05
12 lines
1276 bytes
I want to display a team name dropdown in a column in my dbgrid.
Team table have a teamid.
I want to sort by team names before they are displayed.
I want to only select a type of team before they are displayed.
My lookup field displays all teams in all leagues in random order.

my table looks like this:

Teamid
team league
team name
team manager id
Technical Details
Message-ID: <3fcbbac1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.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-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,cec0d09b8aed8066,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-12-01 14:10:03 PST
Reply-To: "Claude" <claude@dev.scomage.com>
From: "Claude" <claude@dev.scomage.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: How to Sort and Select data in a  lookup field
Date: Mon, 1 Dec 2003 17:05:49 -0500
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 68.39.101.128
Message-ID: <3fcbbac1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1070316225 68.39.101.128 (1 Dec 2003 14:03:45 -0700)
Path: arc1-ca.pugleaf.net!archiver1.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