Hello, im trying to use a split function to create an array and then loop thgrough that to select items on a listbox. here is the code
Problem is that access says "For Each may only iterate over a collection object or an array"
Well... it is.... isn't it??
Can somebody point me in the right way? cheers
Code:
Dim row As Variant, item As Variant, sArray As String
sArray = Split(SList, ",")
For Each item In sArray
For row = 0 To lst1.ListCount - 1
If Me.lst1 = sArray(1) Then Me.lst1.ItemsSelected = True
Next
Next
Well... it is.... isn't it??
Can somebody point me in the right way? cheers
Comment