View Full Version : Form Maximize


constm
04-24-2001, 07:30 PM
I am trying to create a sort of switchboard by using a form. How do I create it so every time the form is started it is maximized automatically?

Peter D
04-24-2001, 08:55 PM
Put a

DoCmd.Maximize

in the form OnOpen (or OnActivate) event proc.

Hope this helps,

Peter De Baets
Peter's Software - MS Access tools for developers http://www.peterssoftware.com

dkirk02
05-03-2001, 11:21 AM
I have not done any coding so far, and I was wondering if you simply add that statement in the properties box for the form where you would normally use the drop down box to choose Event Procedure, macro name, etc. Or, do you have to add it to the actual code?

[This message has been edited by dkirk02 (edited 05-03-2001).]

karatelung
05-03-2001, 11:44 AM
Open the form's properties box. Choose 'event procedure' for the OnOpen event. Click the elipses to the right of the OnOpen box. This will open the VB editor. Enter the command in between the "Private Sub Form_Open(Cancel As Integer)" and "End Sub" lines. That's it. Your code is saved when you save the form.