OpenForm Maximized?

J

Joe Delphi

Hi,

I have a form that will serve as the main window for my application.
When it opens, I want it to open maximized - in other words, I want it to
open so that it takes up all of the space in the MS Access window.

How do I do this? I was hoping for something like
OpenForm "frmMainWindow", acMaximize


JD
 
G

Guest

Joe,

In the "OnOpen" event of your form place the following:

Docmd.Maximize

That should do it.

If you need to display something that is not maximized, then issue this
command:

Docmd.Restore
 

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