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

Multiselect List - 3 columns - Problem selecting 1

Status
Not open for further replies.

ZOR

Technical User
Jan 30, 2002
2,963
GB
I have a listbox which works with the code below when having only 1 column. Now there are three columns I cannot get a value in strList1. Anyone know how to sort it out. Thanks.

Private Sub L14_Click()
strList1 = ""

For Each Item1 In Me.L14.ItemsSelected
strList1 = strList1 & ",'" & Replace(Me.L14.ItemData(Item1), "'", "''") & "'"
Next Item1

Me.RR = strList1
End Sub
 
Seems you forgot to define the BoundColumn property of L14.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Many thanks, Stupid me, you were correct. Reagrds
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top