Multiple Instances of a Form to second level

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone have any experience attempting to allow the creation of multiple
instances of a multiple instance form.

In other words, I would like to be able to have a second level of creating
multiple instances of forms.

Any comments and/or advice would be apprecitate.

Mr B
 
So, you are managing multiple instances of a form as a Collection.

Now you need to be able to create another Collection dependent on the
instance (so in the module of the form), and manage the items in that
collection. I've never set that up, but since the Collection exists in the
module of the form, and each instance of the form is actually a class
instance, the secondary collection would be dependent on the instance of the
main form, which was your aim.

Either that, or just use subforms.
 
Declare the collection in the General Declarations section of the first
form's module.

Each instance of this first form will be instantiated separately, and that
instance will then have its own collection.

As I said, that suggestion untested, but should work.
 
Yes, its similar.

You have this declaration in the General Declarations section of a standard
module to manage the instances:
Public clnClient As New Collection

Now you need a similar declaration in the module of the form:
Private clnOther As New Collection
Each form instance therefore has its own dependent collection it manages.
 
Back
Top