Switchboard - Open window

mypig7

Active Member
Joined
Sep 27, 2004
Messages
285
I have created a switchboard.
When I click on a button (which I inputted) to open a form, the form opens but doesn't fill the screen.

How can I set it so that it does fill the screen.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Switchboard problems - Opening Form

Hi,

I have tried to put this code into the Vb code, to get a form to fill the screen as soon as I click the relevant button on the switchboard :-

Private Sub Form_Load()

DoCmd.Maximize

End Sub

I'm not v.good at VB and am not sure where to paste it.
Is there another way?

Help!
 
Upvote 0
You really don't need to know any VB to do this.

All you have to do is open your form in Design View, and then view the Properties of the form.
Then go to the Event tab.
Find the "On Load" event, then click just to the right of the entry box and select the "Code Builder" option.
Then simply paste the code in the resulting box.

That's all there is to it!
 
Upvote 0

Forum statistics

Threads
1,221,852
Messages
6,162,431
Members
451,765
Latest member
craigvan888

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top