 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
miek Guest
|
Posted: Thu Feb 10, 2005 3:16 pm Post subject: DBLookupComboBox question |
|
|
With a DBLookupComboBox object on a form; the properties
listfield & keyfield properties are pointing to field1.
How does one programically code the DBLookpComboBox object to display this field for any record?
ie. point to a different record, thus changing the value in DBLookupComboBox without using the dropdown.
Thanks
|
|
| Back to top |
|
 |
Brian Hollister Guest
|
Posted: Thu Feb 10, 2005 4:25 pm Post subject: Re: DBLookupComboBox question |
|
|
hi,
You can assign a value to the KeyValue property.
hth,
brian
--
Got a big event coming up? Let us
help coordinate your event. For more
visit www.kissemgoodbye.com
"miek" <m706102516 (AT) msn (DOT) com> wrote
| Quote: |
With a DBLookupComboBox object on a form; the properties
listfield & keyfield properties are pointing to field1.
How does one programically code the DBLookpComboBox object to display
this field for any record?
ie. point to a different record, thus changing the value in
DBLookupComboBox without using the dropdown.
Thanks
|
|
|
| Back to top |
|
 |
miek Guest
|
Posted: Thu Feb 10, 2005 6:03 pm Post subject: Re: DBLookupComboBox question |
|
|
Thanks that works great, I used:
"DbLookupCB.KeyValue := ADO_Tbl.Fields.Fields[0].AsVariant;"
Miek
"Brian Hollister" <bhollisterATfuturaintlDOTcom> wrote:
| Quote: | hi,
You can assign a value to the KeyValue property.
hth,
brian
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|