Form not Maximizing

  • Thread starter Thread starter Troy
  • Start date Start date
T

Troy

I have a database that maximizes when open. When I click
on a button to go to another form everything is fine, but
when I click exit(close form) the previous form is no
longer maximized. Any idea what can be causing this?

Access 2002 on windows 2000.

Thanks,

Troy
 
Sounds like there is a DoCmd.Restore in the code for the exit button. Just
remove this and you should be fine.

Kelvin
 
code below. I don't see one Kelvin.

Private Sub cmdExit_Click()
On Error GoTo Err_cmdExit_Click


DoCmd.Close

Exit_cmdExit_Click:
Exit Sub

Err_cmdExit_Click:
MsgBox Err.Description
Resume Exit_cmdExit_Click

End Sub
 
There is no reason for the form to change from maximized to normal on its
own. Is this second form also maximized? If not, then you have code either
in the button to open this form or on the open event of this form with
DoCmd.Restore. Check all the codes related to these 2 forms and I'm sure
you'll find the code somewhere in those.

Kelvin
 
Back
Top