MS Access Form

Anonymous
2025-02-16T13:08:24+00:00

Good day, possibly a simple one, but not sure. Where can one change to Form setting, meaning when you Open the MS Access DB it maximizes to the Form automatically without showing the Navigation Pane on the left? Best, CP

Microsoft 365 and Office | Access | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2025-02-16T14:08:33+00:00

In my own databases, including my demo files made available online, rather than hiding the navigation pane I normally minimize it by putting the following code in the Open event procedure of the database's opening form:

    ' minimize navigation pane

    DoCmd.SelectObject acForm, Me.Name, True

    DoCmd.Minimize

That way it does not intrude on the screen, but is easily maximized by me or users of my demos if I or they need to access any of the objects in the database.  If I'm distributing a file to an end user, however, I would normally do as Hans has described to hide the navigation pane.  Additionally I would create an AutoKeys macro in which the {F11} key is set to perform no action.  This prevents the user opening the hidden navigation pane with the F11 key.

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments
Answer accepted by question author
Anonymous
2025-02-16T13:26:24+00:00

It depends on your goal. Do you want it permanently hidden or only while that one form is open?...

One solution could be:

Private Sub Form_Open(Cancel As Integer)
DoCmd.Maximize
DoCmd.NavigateTo "acNavigationCategoryObjectType"
DoCmd.RunCommand acCmdWindowHide
End Sub

Private Sub Form_Close()
DoCmd.SelectObject acTable, , True
End Sub

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments
Answer accepted by question author
HansV 462.7K Reputation points MVP Volunteer Moderator
2025-02-16T13:23:26+00:00

Open the database.

Select File > Options.

Select 'Current Database' in the navigation pane on the left.

Select the form that you want to display when the database is opened in the 'Display Form' drop-down.

Further down, clear the check box 'Display Navigation Pane'.

Click OK.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful