batwings
Registered User.
- Local time
- Today, 23:43
- Joined
- Nov 4, 2007
- Messages
- 40
Hi there
I am trying to use a list box and multi select from it as a source to enter data into a bound field in a table. I found what I thought was just what I need but I keep getting error 424 object required!
The list box is on a form bound to the field [comments] that I want to update.
The comments should be in the form of :-
comment1, comment2, comment3 and so on, depending on how many comments I select from the list box.
I have already added about 10 comments to the Rowsource of the listbox.
Thanks again
Batwings
I am trying to use a list box and multi select from it as a source to enter data into a bound field in a table. I found what I thought was just what I need but I keep getting error 424 object required!
The list box is on a form bound to the field [comments] that I want to update.
The comments should be in the form of :-
comment1, comment2, comment3 and so on, depending on how many comments I select from the list box.
I have already added about 10 comments to the Rowsource of the listbox.
Code:
Private Sub cmdStoreAllSelections_Click()
Dim SelectedValues, item
For Each item In lstItems.ItemsSelected
If SelectedValues > "" Then
SelectedValues = SelectedValues & "," & lstItems.ItemData(item)
Else
SelectedValues = lstItems.ItemData(item)
End If
Next item
Me!CompoundValue = SelectedValues
End Sub
Thanks again
Batwings