I have a multiselect listbox whose selections are then copied into a textbox using the following code.
Private Sub ListAvailable_Click()
Dim strItems As String
Dim intItem As Integer
For intItem = 0 To ListAvailable.ListCount - 1
If ListAvailable.Selected(intItem) Then
strItems = strItems & ListAvailable.Column(0, intItem) & ";" & _
ListAvailable.Column(1, intItem) & ";" & _
ListAvailable.Column(2, intItem) & ";"
End If
Next intItem
ListSelected.RowSource = ""
ListSelected.RowSourceType = "Value List"
ListSelected.RowSource = strItems
End Sub
This gives me 3 columns of data inthe textbox. I want to take each line in that text box and append it to a table along with the current ID on the form. Is this possible? I thought I saw something like this but with the search disabled I am stuck.
Thanks
Private Sub ListAvailable_Click()
Dim strItems As String
Dim intItem As Integer
For intItem = 0 To ListAvailable.ListCount - 1
If ListAvailable.Selected(intItem) Then
strItems = strItems & ListAvailable.Column(0, intItem) & ";" & _
ListAvailable.Column(1, intItem) & ";" & _
ListAvailable.Column(2, intItem) & ";"
End If
Next intItem
ListSelected.RowSource = ""
ListSelected.RowSourceType = "Value List"
ListSelected.RowSource = strItems
End Sub
This gives me 3 columns of data inthe textbox. I want to take each line in that text box and append it to a table along with the current ID on the form. Is this possible? I thought I saw something like this but with the search disabled I am stuck.
Thanks