+ Reply to Thread
Results 1 to 3 of 3

Problems storing a Collection within a Collection. Is this possible?

  1. #1
    Forum Contributor Tarball's Avatar
    Join Date
    04-21-2007
    Location
    Atlanta, GA
    Posts
    166

    Problems storing a Collection within a Collection. Is this possible?

    Forgive me but I cannot post examples as this is confidential information. I have changed the labels to be for a car dealer to protect the information that I am working with.


    Is it possible to store 1 collection in another collection?

    Given a collection called Dealer and another called Inventories.


    Please Login or Register  to view this content.
    Loading each individual collection seems to work as I can print off make, model, and all the VINs and prices underneath. But I am not so sure I am collecting all of the Inventories for each Dealer rather it seems I only have the last one.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Are you defining classes in a class module or making Collections in a normal module?

    I don't see the variable Dealers defined (nor DealerObj or InventoryObj).

    In any case, yes collections can hold other collections. You can even add to the sub collections after they are added to the outer collection.
    Please Login or Register  to view this content.
    does not crash in the last line.

  3. #3
    Forum Contributor Tarball's Avatar
    Join Date
    04-21-2007
    Location
    Atlanta, GA
    Posts
    166

    Wink

    Thanks for the help! In reviewing your code and looking back at mine I found that I didnt set my sub collection up properly. I fixed it and it now appears to be working just fine.

    Thanks for the nudge in the right direction.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1