Link to home
Create AccountLog in
Avatar of frimy
frimyFlag for United States of America

asked on

Access 2010

Hello All,

How do I hide the Navigation Pane in Acc 2010?

when ever i use to import Excel file into my database using,
DoCmd.TransferSpreadsheet acLink, acSpreadsheetTypeExcel8, "TBLname", wImportName, True
the navigation pane opens.

Thanks
Avatar of Bembi
Bembi
Flag of Germany image

Hello,
there is no way to avoid it, but you can deal with the navigation pane...

DoCmd.NavigateTo ("acNavigationCategoryObjectType")
DoCmd.Minimize

to minimize the pane...

DoCmd.NavigateTo ("acNavigationCategoryObjectType")
DoCmd.RunCommand (acCmdWindowHide)

to hide the pane.
Avatar of frimy

ASKER

Thanks Bembi

DoCmd.NavigateTo ("acNavigationCategoryObjectType")
DoCmd.RunCommand (acCmdWindowHide)

the DoCmd.Minimize,   does work

but the,  DoCmd.RunCommand (acCmdWindowHide),
doesn't work it closes the current form but doesn't hide the pane.
can you tell what's the problem?
thanks

Avatar of frimy

ASKER

Bembi,
i see already the DoCmd.NavigateTo ("acNavigationCategoryObjectType")
only works to minimize but not hide the pane.
what can we do?

ASKER CERTIFIED SOLUTION
Avatar of Bembi
Bembi
Flag of Germany image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer