Hi,
I have a global var 'oSerials' declared as a collection.
I use the following code to populate it
so far so good, however, when I later try to access the collection I get
I'm accessing it like this...
what am I missing and why isn't there a 'contains' method of the collection class?
Thanks,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts
I have a global var 'oSerials' declared as a collection.
I use the following code to populate it
Code:
Set oSerials = New Collection
Do While Not rs.EOF
oSerials.Add rs.Fields("serial")
rs.MoveNext
Loop
so far so good, however, when I later try to access the collection I get
object invalid or no longer set
I'm accessing it like this...
Code:
Dim oSerial As Object
Dim bOK As Boolean
bOK = False
For Each oSerial In oSerials
If oSerial.Value = getSerial Then
bOK = True
End If
Next
what am I missing and why isn't there a 'contains' method of the collection class?
Thanks,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts