The following seems to work:
Dim MyMDIParent = Me.MdiParent.FindForm
Dim ChildForm as New frmChild
ChildForm.MdiParent = MyMDIParent
ChildForm.Show()
Still not quite sure why it works, but it does and for that I am grateful.
Thanks for trying to help.
deed59
Thanks for the reply. Your answer works when opening the child form from an MDI parent. The problem comes in when trying to open a child form from another child form. As was stated in the original message of this thread:
"I have 3 forms, one being a parent and 2 children. I open the first...
You need to reference the main form as well as the subform.
For example if your main form is named frmMain the syntax would be as follows:
Forms!frmMain!SubfrmSearchHistoReg.Form.RecordSource = "SELECT * FROM HistoryRegulation1991-1997 " _
& strWhereHistReg1
deed59
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.