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!

[b]how to retrive an unbound column in a listbox[/b]

Status
Not open for further replies.

pinstripe

Programmer
Dec 27, 2004
52
Hello,
i have a listbox with boundcolumn 1 (field:StockCode)
then i have a textbox in which i would like to show (when you select an item in a listbox) value from column 2 (field:Discription)!
How can i do that?
Couse i can always diplay in a text box the bouncolumn -StockCode!!
thanks for help
 
Address the index thru the column property, for instance as controlsource of the text control:

[tt]=lstMyList.column(1)[/tt]

- index is zero based, so to retrieve the second column...

Roy-Vidar
 
thx very much.... it is working now!
thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top