Avatar of Murray Brown
Murray Brown
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Access VBA Hide navigation pane where no form


I have a split access database where I use the following code on the main form load in the front end to hide the navigation pane. I want todo something similar in the backend but there is no form.
Where should I put my code?

    If InStr(N, "accde") > 0 Then
         'select the navigation pange
         Call DoCmd.NavigateTo("acNavigationCategoryObjectType")
         'hide the selected object
         Call DoCmd.RunCommand(acCmdWindowHide)
    End If

Avatar of undefined
Last Comment
Murray Brown

8/22/2022 - Mon
John Tsioumpris

Call DoCmd.NavigateTo("acNavigationCategoryObjectType")
Call DoCmd.RunCommand(acCmdWindowHide)
Call DoCmd.SelectObject(acTable, , True)

Open in new window


Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Murray Brown

thanks very much
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.