Maximising Screen

G

Guest

I just did a search on these threads to look for a way to maximise the screen
when you open a form. I got an instruction : "Put a DoCmd.Maximize in the
Form's Open event". I would really appreciate if someone could explain where
the 'open event' is in the form ( I do not know vb and am finding my way
around creating a database). Thank you!
 
D

Douglas J. Steele

With the form open in Design mode, ensure you've selected the form itself,
not one of its controls, by clicking in the square in the upper left-hand
corner. Make sure the Properties window is open (select View | Properties
from the menu if it isn't). The middle tab on the Properties window will be
Event. Find the On Open entry, use the combo box to the right of that label
to select [Event Procedure] and click on the ellipses (...) to the right of
the box. You should be taken into the VB Editor, with the following lines
pretyped for you:

Private Sub Form_Open(Cancel As Integer)

End Sub

Type DoCmd.Maximize inside that, so that you end up with something like:

Private Sub Form_Open(Cancel As Integer)

DoCmd.Maximize

End Sub
 
G

Guest

Thanks Douglas! Instructions were perfect. I think you gave me my first
lesson in VB!! Thanks and happy new year.

Douglas J. Steele said:
With the form open in Design mode, ensure you've selected the form itself,
not one of its controls, by clicking in the square in the upper left-hand
corner. Make sure the Properties window is open (select View | Properties
from the menu if it isn't). The middle tab on the Properties window will be
Event. Find the On Open entry, use the combo box to the right of that label
to select [Event Procedure] and click on the ellipses (...) to the right of
the box. You should be taken into the VB Editor, with the following lines
pretyped for you:

Private Sub Form_Open(Cancel As Integer)

End Sub

Type DoCmd.Maximize inside that, so that you end up with something like:

Private Sub Form_Open(Cancel As Integer)

DoCmd.Maximize

End Sub



--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



Angeline said:
I just did a search on these threads to look for a way to maximise the screen
when you open a form. I got an instruction : "Put a DoCmd.Maximize in the
Form's Open event". I would really appreciate if someone could explain where
the 'open event' is in the form ( I do not know vb and am finding my way
around creating a database). Thank you!
 

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

Similar Threads

Maximise Form to Full Screen Problem 1
Switchboard full screen 1
Auto maximizing? 3
Form Size 5
BASIC INSTRUCTION about Open Event 4
Form in Full Screen 3
Maximize and center? 2
Maximising a borderless form 1

Top