Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Access VBA Hide navigation pane where no form

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
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

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

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

thanks very much