I have a form with a list box on it named List1. I am trying to use VBA (Access 2000) to populate this listbox and keep getting the error with the .AddItem text highlighted: "Method or data member not found" using the following code:
Dim lstitem As ListView
Dim i as Integer
For i=1 to ListView1.ListItems.Count
If ListView1.ListItems.Item(i).Selected = True Then
Me.List1.AddItem ListView1.ListItems.Item(i)
End If
Next i
The List1.RowSourceType is set to Value List
Any suggestions please. Thank you.
Dim lstitem As ListView
Dim i as Integer
For i=1 to ListView1.ListItems.Count
If ListView1.ListItems.Item(i).Selected = True Then
Me.List1.AddItem ListView1.ListItems.Item(i)
End If
Next i
The List1.RowSourceType is set to Value List
Any suggestions please. Thank you.