Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Switchboard form doesn't open to full window

Status
Not open for further replies.

NC1977

Programmer
Nov 26, 2007
22
CA
Hi,

My db is complete and have selected a form to open on startup(switchboard). For some reason, it doesn't open to full view on the screen...Where can I change this view problem???

Thank you
 
Hi,

Go into design view of your switchboard, and go to properties of the form. On the OnOpen event, click the button with 3 dots to go to VBA. You then need to type in DoCmd.Maximize at the start of the OnOpen event, something like this:

Code:
Private Sub Form_Open(Cancel As Integer)
' Minimize the database window, initialize and maximise the form.
DoCmd.Maximize

    ' Move to the switchboard page that is marked as the default.
    Me.Filter = "[ItemNumber] = 0 AND [Argument] = 'Default' "
    Me.FilterOn = True
    
End Sub

I just made the switchboard from scratch so thats why there is nothing in it!!

Hope this works for you,

Andrew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top