open frm maximized

N

nydia

when i click to open a specific form, it doesnt open
maximized. how can i get it to open maximized all the time?
 
C

Cheryl Fischer

Nydia,

You can use the following VBA code in the Open event of your form:

DoCmd.Maximize

hth,
 
B

Bas Cost Budde

nydia said:
when i click to open a specific form, it doesnt open
maximized. how can i get it to open maximized all the time?

Open the form in Design view.
From the View menu, choose Properties.
Select the tab Events.
At onLoad, select [Event Procedure].
Click the button with the three dots next to this.
In the code module, type
docmd.maximize
Close and save as appropriate.
 
R

Rick

you can place the following code in the on open event...


Private Sub Form_Open(Cancel As Integer)
DoCmd.Maximize
End Sub


Hope that helps,

Rick
 

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