From "Visual Basic Concepts" in the MSDN
>Use the Add method to add an item to a collection. The syntax is:
>Sub Add (item As Variant [, key As Variant] [, before As Variant]
[, after As Variant] )
>For example, to add a work order object to a collection of work orders using the work order's ID property as the key, you can write:
>colWorkOrders.Add woNew, woNew.ID
>This assumes that the ID property is a String.
My question is:
If the work order's ID changes, how do i change the key in the collection so i can access the item as colWorkOrders.Item(woNew.NEWID).Name
P.S. I've considered the obvious of colWorkOrders.Remove(woNew.ID) and then
colWorkOrders.Add woNew, woNew.NEWID however i don't know how to copy the data to the new object.