ACC: How to Create a Collection of CollectionsLast reviewed: August 28, 1997Article ID: Q154448 |
The information in this article applies to:
SUMMARYModerate: Requires basic macro, coding, and interoperability skills. One of the limitations of the Visual Basic for Applications Collection object is that it cannot contain a user-defined data type. Similar behavior can be accomplished, however, by creating a collection that contains the elements you would normally define in your user-defined data type, and then storing that collection in a second collection. This article provides an example of how to create "nested" collections. This article assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to your version of the "Building Applications with Microsoft Access" manual.
MORE INFORMATIONTo create a collection within a collection, follow these steps:
REFERENCESFor more information about collections, search the Help Index for "Collection object. Keywords : PgmColl PgmHowTo PgmObj Version : 7.0 97 Platform : WINDOWS Hardware : x86 Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |