Hello Bruce,
Thank you for responding.
I figured out a solution but its not quite what I would prefer.
In the code behind for form3 (which could be applied to form2 as well) I have this event procedure that runs when Iclick the View Project Document button:
Private
Sub ViewProjDocWindow(
ByVal sender
As System.Object,
ByVal e
As System.EventArgs)
Handles ViewProjDoc.Click
If (fm_main.param > 0) Then
fm_repInitProjRequest.WindowState = FormWindowState.Normal
fm_repInitProjRequest.ShowDialog()
fm_repInitProjRequest.BringToFront()
fm_repInitProjRequest.Refresh()
Me.Text = "Project Initiation Request"
Else
MsgBox("You must select a saved Project Initation record first")
End If
End Sub
First, the subroutine confirms that I am accessing a saved document before a report can be generated. If so, it passes that ID as a parameter to the report. If no parameter exists, then no saved document is being accessed. Therefore, don't load 'form4' and give a reason why.
fm_repInitProjRequest is the name for my 'form4'. I wanted to treat it as an MDI child so that I may toggle back/forth between the open forms but it does not let me. Instead I open this dialog box version of the form and the limitation is that I must close it when I am done.
I would prefer to have the flexibility to go back/forth between open forms rather than be forced to access only form4 until I close it.
-Alex A