Re: About lookup fields..
From: Andrew (abaylis_nos_at_spamcop.net)
Date: 03/19/05
- Previous message: Ralf Jansen: "Re: D2005 inpage crash with dbGO ADO objects"
- In reply to: kolja2003: "Re: About lookup fields.."
- Next in thread: Brian Bushay TeamB: "Re: About lookup fields.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 20 Mar 2005 08:33:26 +1100
"kolja2003" <kolja2003@list.ru> wrote in message
news:423b3368@newsgroups.borland.com...
>I want to sort along lookup field which I created and added to ADOQuery in
> Delphi.
> Then I enter statement: ADOQuery1.Sort:= 'Nameoflookupfield'.
> And what I get the error message: "Class EOLEexception with message <Item
> cann't be found in collection correponding with requested name or
> ordonal>".
>
>
That's because the Sort routine relies upon the data fields provided by the
query, not any others. The only way (I can think of) that you can do this
is if you modify your query using a JOIN to bring in the lookup data as part
of the query, then sort on that.
HTH
Andrew
- Previous message: Ralf Jansen: "Re: D2005 inpage crash with dbGO ADO objects"
- In reply to: kolja2003: "Re: About lookup fields.."
- Next in thread: Brian Bushay TeamB: "Re: About lookup fields.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|