I have an application that uses multiple instances of a form, so I instantiate it using
Dim MyForm2 As New Form_MyForm
When I try to refer to the form by name
(i.e Forms("FormName").Name it does not work.
MyForm2.Name does work and returns the name of the form, as does forms(3).name, i.e using the index but like I said, forms("FormName").Name does not work.
I guess it makes sense because how do you refer to multiple instances by the same name, but is there a way I can do this using some sort of incrementer, such as
Forms("FormName" & x).name?
Any help would be greatly appreciated! Thanks in advance!
Dim MyForm2 As New Form_MyForm
When I try to refer to the form by name
(i.e Forms("FormName").Name it does not work.
MyForm2.Name does work and returns the name of the form, as does forms(3).name, i.e using the index but like I said, forms("FormName").Name does not work.
I guess it makes sense because how do you refer to multiple instances by the same name, but is there a way I can do this using some sort of incrementer, such as
Forms("FormName" & x).name?
Any help would be greatly appreciated! Thanks in advance!