Hi,
I have a dilema, I have an MDI app and I open new forms as
In modBas.bas:
Public frmD(50) As frmDocument
MDI Form Load (frmMain):
Static lDocumentCount As Long
lDocumentCount = lDocumentCount + 1
Set frmD(1) = New frmDocument
frmD(1).Width = 320 * Screen.TwipsPerPixelX
frmD(1).Caption = "Page - Home (" & lDocumentCount & ")"
frmD(1).Show
lDocumentCount = lDocumentCount + 1
Set frmD(2) = New frmDocument
frmD(2).Width = 320 * Screen.TwipsPerPixelX
frmD(2).Caption = "Page - About (" & lDocumentCount & ")"
frmD(2).Show
I can refer to each form as
frmD(Index).SetFocus
frmD(Index).Show
etc. no problem.
However I cannot read this name from the form, when I read the name:
strFrmName = ActiveForm.Name
I simply get frmDocument (the template document name)
How can I read the frmD(Index) name of the Active Document?
Tried everything I can think of, help much appreaciated.
Steve
"If all you own is a hammer, every problem starts looking like a nail."