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!

selected item in listbox based on selection from previous listbox

Status
Not open for further replies.

pinstripe

Programmer
Dec 27, 2004
52
hello to all..

i have a form1 with a listbox1
then there is form2 with listbox2

what i would like is - when i will select item in first listbox and click button ok, on the next form (form2) i will have an item (same as on listbox1) already selected

thank's

 
I did the same thing with a combo box - should work the same:

on the first form with the list box - in the "after update" event, put the following code:

Forms!frmForm2.lstListBox2 = lstLisbox1.Column(2)


this should do it for you.

Tina
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top