Does anyone know what my problem might be?
I am trying to refer to a certain instance of a form that I've added to a collection. I am adding several instances of the same form to a Collection object called colForms, then trying to access the information on them from a different module.
In the form-module which creates the instances, I first declare colForms (in the declarations section) like this:
Then the code (in this same form-module) that creates the multiple instances of the form, "frmInventory Entry Form", looks like this:
The form instances are being created just fine, and I can access colForms' properties (count, index, etc.) just fine in this module, but I can not access them at all from any other module, even though I have declared colForms as a Public Collection object.
Any thoughts?
I am trying to refer to a certain instance of a form that I've added to a collection. I am adding several instances of the same form to a Collection object called colForms, then trying to access the information on them from a different module.
In the form-module which creates the instances, I first declare colForms (in the declarations section) like this:
Code:
Public colForms As New Collection
Then the code (in this same form-module) that creates the multiple instances of the form, "frmInventory Entry Form", looks like this:
Code:
Set frmSearchResultsFV = New [Form_frmInventory Entry Form]
colForms.Add frmSearchResultsFV
The form instances are being created just fine, and I can access colForms' properties (count, index, etc.) just fine in this module, but I can not access them at all from any other module, even though I have declared colForms as a Public Collection object.
Any thoughts?