P
Piet Linden
Maybe it's just me, but I can't get the SetCollections method to
work... I populate the collection with a list of queries, which works
fine. To test it, I get a count of items in the collection and it
returns the count as it should. When I call the SetCollections
method and pass in the two collections, neither listbox gets
populated.
e.g.
Public Sub SetCollections(Optional colAvailable As Collection,
Optional colSelected As Collection)
Call FillMultiPikCollection(colAvailable, colSelected)
End Sub
in my code, here's the line that should do the setting...
Dim colAvailable As Collection, colSelected As Collection
Set colAvailable = colChosenQueries("Available")
Debug.Print "colAvailable: " & colAvailable.Count
Set colSelected = colChosenQueries("Selected")
Debug.Print "colSelected: " & colSelected.Count
Dim arrSelected() As Variant
Dim arrAvailable() As Variant
Set mmp = New MultiPik
.....
then it does the standard SetArrays and assigns them... I didn't
modify any of that.
But alas, I never get any data in my listboxes. What gives?
work... I populate the collection with a list of queries, which works
fine. To test it, I get a count of items in the collection and it
returns the count as it should. When I call the SetCollections
method and pass in the two collections, neither listbox gets
populated.
e.g.
Public Sub SetCollections(Optional colAvailable As Collection,
Optional colSelected As Collection)
Call FillMultiPikCollection(colAvailable, colSelected)
End Sub
in my code, here's the line that should do the setting...
Dim colAvailable As Collection, colSelected As Collection
Set colAvailable = colChosenQueries("Available")
Debug.Print "colAvailable: " & colAvailable.Count
Set colSelected = colChosenQueries("Selected")
Debug.Print "colSelected: " & colSelected.Count
Dim arrSelected() As Variant
Dim arrAvailable() As Variant
Set mmp = New MultiPik
.....
then it does the standard SetArrays and assigns them... I didn't
modify any of that.
But alas, I never get any data in my listboxes. What gives?