S
Souris
I have a collection and add the items in the loop.
I would like to check if the item exists, if yes, I will concatenate with
original and new information, f not I just need add new one.
My code is like following, but it works only null string,
If Len(MyCollection.Item(i).Value) = 0 Then
MyCollection.Add """" + (Myrs.Fields![MyCode].Value) + """"
Else
MyCollection.Item(i) = MyCollection.Item(i).Value + """" +
(Myrs.Fields!MyCode].Value) + """"
End If
It only works when the len result is zero, but it fails when the len result
great than zero.
Your information is great appreciated,
I would like to check if the item exists, if yes, I will concatenate with
original and new information, f not I just need add new one.
My code is like following, but it works only null string,
If Len(MyCollection.Item(i).Value) = 0 Then
MyCollection.Add """" + (Myrs.Fields![MyCode].Value) + """"
Else
MyCollection.Item(i) = MyCollection.Item(i).Value + """" +
(Myrs.Fields!MyCode].Value) + """"
End If
It only works when the len result is zero, but it fails when the len result
great than zero.
Your information is great appreciated,