Article ID: 210035 - Last Review: July 15, 2004 - Revision: 1.3 ACC2000: How to Create a Collection of CollectionsThis article was previously published under Q210035 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp). SUMMARY
A limitation of the Microsoft Visual Basic for Applications Collection object is that it cannot contain a user-defined data type. You can achieve similar functionality, however, by creating a collection that contains the elements that you would normally define in your user-defined data type, and then storing that collection in a second collection. This article shows you how to create such a nested collection.
MORE INFORMATION
To create a collection within a collection, follow these steps:
REFERENCESFor more information about collections, click Microsoft Visual Basic Help on the
Help menu, type collection object in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
| Article Translations
|
Back to the top
