How do u auto maximize Access startup switchboard when db opens?

J

jisen77895

I have a startup switchboard that does not open in maximize window view when
the db opens. How do you fix it?
I've tried on form properties to set Autoresize to no and drag window to
fill the screen but it doesn't work.

I assume the answer to this will also apply to having all forms open in max.
view...having problem with that as well.

Thx
 
D

Dirk Goldgar

jisen77895 said:
I have a startup switchboard that does not open in maximize window
view when the db opens. How do you fix it?
I've tried on form properties to set Autoresize to no and drag window
to fill the screen but it doesn't work.

I assume the answer to this will also apply to having all forms open
in max. view...having problem with that as well.

Create an event procedure for the form's Open event:

'----- start of code -----
Private Sub Form_Open(Cancel As Integer)

DoCmd.Maximize

End Sub
'----- end of code -----

Once you've executed DoCmd.Maximize, all forms will be maximized --
except for popup forms -- until DoCmd.Restore is executed, or a use
clicks the Restore button.
 
Top