Form not Maximizing

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
 
K

Kelvin

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

Kelvin
 
T

Troy

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
 
K

Kelvin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top