Share via

keep main form maximized?

Anonymous
2010-06-23T20:05:01+00:00

I have a form with command buttons that open other forms.  The main form initially opens maximized.  I set the OnLoad event to maximized.  When I close the other forms the main form changes size and is smaller.  I'd like to keep it maximized.  How can I do this?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2010-06-23T20:11:00+00:00

There are a few ways, but I find this the simplest. Use the main form's Activate event:

Private Sub Form_Activate()

    DoCmd.Maximize

End Sub

As soon as the form gets the focus again it will maximize itself.


Bill Mosca, MS Access MVP

http://www.thatlldoit.com

http://mvp.support.microsoft.com/profile/Bill.Mosca

http://tech.groups.yahoo.com/group/MS_Access_Professionals

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2010-06-23T20:18:27+00:00

    No problem, Wayne. I've done that myself many times.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2010-06-23T20:14:47+00:00

    ooops sorry bill - just seen that you had already said the same - can't seem to delete my post

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2010-06-23T20:13:41+00:00

    use DoCmd.Maximize OnActivate

    Was this answer helpful?

    0 comments No comments