VBA Code for Maximize

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello.
If I wanted to create an Event Procedure for when the form loads and I want
it to maximize the form what would be the vba code?

Thanks.

Iram/mcp
 
Hi Iram,

in the form open (or form load, or form activate) event, put the following:

docmd.maximize

Hope this helps.

Damian.
 
Hello.
If I wanted to create an Event Procedure for when the form loads and I want
it to maximize the form what would be the vba code?

Thanks.

Iram/mcp


The event proceedure already exists - you can use either Load or Open,
or to ensure it's maximized anytime you come back to it you can use
GotFocus or OnCurrent.
DoCmd.Maximize will do the actual maximizing.

(Trying to maximize the number of time maximized is used in one post)
 

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

Back
Top