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!

display combo box selection in list box

Status
Not open for further replies.

Apollo13a

Technical User
Apr 27, 2003
277
US
Hello, I'm trying to display an item that is selected in a combo box.. in a list box. My combo box data has three columns so I set up my list box to have three columns and added some code, but all I can get is the full list from the combo box to display in the list box. Any ideas?
Thanks,
Jim
 
Are you trying to select several records (one at a time) with a combo box and have each selection show up in the list box?
 
dbelsey, Not really, although eventually that might be a requirement. Currently, I want to select one record in the combo and have it show up in the list box. The record I'm choosing in the combo will actually use three columns in the list box and eventually I will have three more columns to display associated records, e.g. labor hours that are associated with the task codes that are chosen in the combo box.
Thanks, Jim G
 
Hi,
what about your criteria for selection? Bound Column for both controls has the similar data?

Do you have selected row(s) in your List Box when you
change your Combo Box value?

Let say you have cbID (Combo) and lstID (List) and MultiSelect = 0.
Try something like this:

Private Sub cbID_AfterUpdate()

lstID = cbID

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top