Hi there! I have a multiselect ListBox on a form which I am trying to have the selections displayed as a string on my report. I was given the following code but it was a little unclear to me. I'm not sure where it goes, either. Please Help. Here is what the loop code looks like:
...
Dim varItem As Variant
dim txtTemp As String
For Each varItem in Me.ListBox.ItemsSelected
txtTemp = txtTemp & Me.ListBox.Column(ColumnNumber) & ", "
Next
txtTemp = Left(txtTemp, Len(txtTemp) - 2)
Me.TextBox = txtTemp
...
Thanks!
Brian
...
Dim varItem As Variant
dim txtTemp As String
For Each varItem in Me.ListBox.ItemsSelected
txtTemp = txtTemp & Me.ListBox.Column(ColumnNumber) & ", "
Next
txtTemp = Left(txtTemp, Len(txtTemp) - 2)
Me.TextBox = txtTemp
...
Thanks!
Brian