Subject Re: [IBO] Questions about TIB_LookupCombo
Author Paul Vinkenoog
Hi Alfred,

> I have 2 qn regarding TIB_LookupCombo:
> 1. The DataSource property specifies the lookup source. So where do
> I specify the datasource that the data should be written to?

You don't do that from the TIB_LookupCombo. You set up two datasets as
a KeySource-Lookup pair; then you set the DataSource of the Combo to
the Lookup set, and everything works automagically. If you have the
Getting Started Guide, there's a detailed description of how to do

> 2. I would like to type into the lookup combo, and it will locate
> the record (partialkey) accordingly. What property should I set
> in order to achieve that?

First make sure there's an explicit OrderingItem in effect for the
lookup set ("ORDER BY" in the default SQL is not enough -
OrderingItemNo must not be 0).

Then set the LookupCombo's SearchKeyByKey property to true (and
optionally SeekNearest too).

Paul Vinkenoog