LRe: Expert: Sorting a DBGrid from an Access Db via ADO
From: Pontus Berg (pontus_at_berg.to)
Date: 08/19/04
- Previous message: Brian Bushay TeamB: "Re: Expert: Sorting a DBGrid from an Access Db via ADO"
- In reply to: Brian Bushay TeamB: "Re: Expert: Sorting a DBGrid from an Access Db via ADO"
- Next in thread: Dave Blake: "Re: Expert: Sorting a DBGrid from an Access Db via ADO"
- Reply: Dave Blake: "Re: Expert: Sorting a DBGrid from an Access Db via ADO"
- Reply: Brian Bushay TeamB: "Re: LRe: Expert: Sorting a DBGrid from an Access Db via ADO"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 19 Aug 2004 08:44:02 +0200
Howdy Brian,
> >Is there any EASY way around this to actually sort a DBGrid based on a
field
> >which is of the Lookup kind?
"Brian Bushay TeamB" <BBushay@Nmpls.com> wrote:
> No.
> Calculate the field in your SQL statement would be your best bet
So basically, it's not possible. How do I do that in the SQL statement? The
Lookup does 100% what I want, so it's just so convenient and it's a shame
something like this woule force me into some complex solution instead.
I have a table with a value in it and then I these values are looked up
against another table and fills in a field in the first database. (The
values are "country code" and it's looked against the long name of the
country in a country table).
The first table is ADO and Access 2003 (this is the one worked on) whereas I
have the countries code and corresponding long names in a ClientDataSet.
How do I do that in SQL? Does SQL feature lookup string replacement? (I'm a
totaly know nothing beyond the SELECT * statement)
/Pontus
- Previous message: Brian Bushay TeamB: "Re: Expert: Sorting a DBGrid from an Access Db via ADO"
- In reply to: Brian Bushay TeamB: "Re: Expert: Sorting a DBGrid from an Access Db via ADO"
- Next in thread: Dave Blake: "Re: Expert: Sorting a DBGrid from an Access Db via ADO"
- Reply: Dave Blake: "Re: Expert: Sorting a DBGrid from an Access Db via ADO"
- Reply: Brian Bushay TeamB: "Re: LRe: Expert: Sorting a DBGrid from an Access Db via ADO"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|