Maximising form at start-up

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

Guest

Hi,

I have set-up the program to open a form at start-up. However each time the
database is opened the form needs to be maximised.

Can someone please advise how the form can be maximised at start-up.

Thanks.
 
In the OnOpen or OnLoad event of the form, type: DoCmd.Maximise
If you want sizing to return to normal when you close this form, in the
OnClose event, type: DoCmd.Restore

Steve
 
Thanks for the feedback Steve. However I am a learner of visual basic. Can
you therefore give me the exact coding. As when I enter the following, I get
a compile error.

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

Thanks
 
Back
Top