Access VBA Hide navigation pane where no form

Murray Brown
Murray Brown used Ask the Experts™
on
Hi

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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
John TsioumprisSoftware & Systems Engineer

Commented:
'Hide
Call DoCmd.NavigateTo("acNavigationCategoryObjectType")
Call DoCmd.RunCommand(acCmdWindowHide)
'Restore
Call DoCmd.SelectObject(acTable, , True)

Open in new window

Senior Developer
Commented:
You could use the AutoExec macro.

BUT: There is no real use in this.
Murray BrownASP.net/VBA/VSTO Developer

Author

Commented:
thanks very much

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial