DatabaseObjects
Object(ByVal objCollection As IDatabaseObjects, ByVal vDistinctValue As Variant) As IDatabaseObject
Object returns an instance of an object from a collection using a distinct value as specified by IDatabaseObjects_DistinctFieldName. If the collection has implemented the IDatabaseObjects_Subset function then the vDistinctValue need only be unique within the subset, not the entire database table. The vDistinctValue is the distinct value as defined by the collection's IDatabaseObjects_DistinctFieldName function.
Dim objProduct As Product
'Return a product instance with an ID number of 1234
Set objProduct = DBO.Object(objGlobalProductsInstance, 1234)