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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Box: Urgent

Status
Not open for further replies.

FoxLearner

Programmer
Aug 29, 2002
93
US
Hi All

I have a combobox with 2 columns, optCode, optDesc. The values are liek this:

optcode optDesc

1 Employee
2 Empl. & Spouse
3 Empl. & Child
4 Family

I want the combo box to display optDesc values like Employee/Emplo. & Spouse ... I bound the column 2. When the combo box is initated it shows the column2 values. But when clicked, it is showing values of column1 that is 1,2,3 or 4.

Another thing, I want to capture the opCode value in to a variable lcOptSelct depending on the selection of the user.

Can some one tell me how can I do this?

Thnaks and regards

FoxLearner.
 
Windows standards (and VFP) always show the first column - just switch the column order to optDesc, optCode.

If you make lcOptSelct a form property, then you can make the ControlSource = ThisForm.lcOptSelct.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top