On Main Form (frmMain)
Code:
Private Sub Form_Activate()
DoCmd.Maximize
End Sub
Private Sub btn1_Click()
DoCmd.OpenForm "PW_Entry", acNormal, , , , , "Password"
Forms!frmMain.Visible = False
End Sub
On PW_Entry Form
Code:
Private Sub cmdClose_Click()
Forms!frmMain.Visible = True
DoCmd.Close acForm, "PW_Entry"
End Sub
There are only two buttons on the PW_Entry form: Close and Continue. Continue closes PW_Entry form and opens a different form. Close makes the frmMain visible and closes the PW_Entry form. My expectation is that when I make the frmMain visible and close the DataEntry form when clicking the Close button that the frmMain form will automatically maximize but this is not happening. No other forms are open.
How do I keep the frmMain always maximized when visible if not via the Activate event?