I am trying to do the following but without success. This is just test code all in the same procedure, the real code is trying to use the forms collection else where.
Dim frm As Form_testRepairs
Dim f As Form
Set frm = New Form_testRepairs
For Each f In Forms
Debug.Print f.Name
Next
Debug.Print Forms("testRepairs".Name
when "Debug.Print Forms("testRepairs".Name" line is reached I get a run time error
Error # 2450 can't find the form 'testRepairs' referred to in a macro expression or Visual Basic code.@* The form you referenced may be closed or may not exist in this database
What name should I use to refer to this form in the forms collection?
Dim frm As Form_testRepairs
Dim f As Form
Set frm = New Form_testRepairs
For Each f In Forms
Debug.Print f.Name
Next
Debug.Print Forms("testRepairs".Name
when "Debug.Print Forms("testRepairs".Name" line is reached I get a run time error
Error # 2450 can't find the form 'testRepairs' referred to in a macro expression or Visual Basic code.@* The form you referenced may be closed or may not exist in this database
What name should I use to refer to this form in the forms collection?