Hiding Navigation Pane

J

JamesJ

I'm trying to hide the Navigation Pane when a form opens then restore it
when the form closes. I RunCode from the Autoexec Macro:

DoCmd.SelectObject acMacro, "Autoexec", True
DoCmd.RunCommand acCmdWindowHide
Call OpenForm("frmHome")

The Nav Pane hides but when I run the following in the OnClose of frmHome I
get an error:

DoCmd.SelectObject acMacro, "Autoexec", True
DoCmd.Restore

Error: ....Object or Class does not support the set of events.

Any way to restore the Nave Pane here??

Thanks,
James
 
Top