Hello!
I'm writing a custom class in Access and I have a Collection object declared as as Public, Read/Write property. The Collection will hold objects related to the main class object. I want to be able to add objects to the Collection from within the class, but I don't want to user to add/edit/remove from outside of the class. I.E. the collection class is Read Only externally and read/write internally.
It's important that the user has the ability to iterate through the collection using For Each...Next, so I don't want to lose that functionality.
How would one go about doing this?
Thank you!
I'm writing a custom class in Access and I have a Collection object declared as as Public, Read/Write property. The Collection will hold objects related to the main class object. I want to be able to add objects to the Collection from within the class, but I don't want to user to add/edit/remove from outside of the class. I.E. the collection class is Read Only externally and read/write internally.
It's important that the user has the ability to iterate through the collection using For Each...Next, so I don't want to lose that functionality.
How would one go about doing this?
Thank you!