Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TDBLookupComboBox displaying a default value at run time

Status
Not open for further replies.

amarti44

Programmer
Feb 16, 2001
23
0
0
US
Hi:

I have a TDBLookupComboBox in a form connected to a Data Source and List Source in two different tables in a database. It works just fine. My question is:
How can I select a lookup value at run time. In other words, I want to use one of the values in the drop-down list to appear by default in the text field of the control without user intervention.

Thanks in Advance,

Alberto
 
The value is determined by the look-up table. If you use a TdbComboBox use the itemindex property at run-time.
The first item =0, the next = 1 etc.

The same is valid for TdbListBox

Regards S. van Els
SAvanEls@cq-link.sr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top