Answered by:
Hide Navigation Pane doesn't work

Question
-
I'm running code from the autoexec macro that uses the transferdatabase method to relink tables. This is causing the option to hide the navigation pane to no longer work.
Is there code out there to hide the navigation pane? In older versions there was a macro action to hide the database window.
Thursday, October 28, 2010 3:39 PM
Answers
-
jeanhu wrote:
I'm running code from the autoexec macro that uses the
transferdatabase method to relink tables. This is causing the option
to hide the navigation pane to no longer work.
Is there code out there to hide the navigation pane? In older
versions there was a macro action to hide the database window.It should still work as in previous versions with the db window:
DoCmd.SelectObject acTable, , True
RunCommand acCmdWindowHide
cu
Karl
*******
Access-FAQ (German/Italian): http://www.donkarl.com- Proposed as answer by Karl DonaubauerMVP Friday, October 29, 2010 4:35 PM
- Marked as answer by Bruce Song Monday, November 1, 2010 9:38 AM
Thursday, October 28, 2010 3:49 PM
All replies
-
jeanhu wrote:
I'm running code from the autoexec macro that uses the
transferdatabase method to relink tables. This is causing the option
to hide the navigation pane to no longer work.
Is there code out there to hide the navigation pane? In older
versions there was a macro action to hide the database window.It should still work as in previous versions with the db window:
DoCmd.SelectObject acTable, , True
RunCommand acCmdWindowHide
cu
Karl
*******
Access-FAQ (German/Italian): http://www.donkarl.com- Proposed as answer by Karl DonaubauerMVP Friday, October 29, 2010 4:35 PM
- Marked as answer by Bruce Song Monday, November 1, 2010 9:38 AM
Thursday, October 28, 2010 3:49 PM -
Nope, doesn't work.
Jean HusaThursday, October 28, 2010 4:40 PM -
Maybe acForm instead of acTable or it doesn't matter?
Andrey V Artemyev | Saint-Petersburg, RussiaThursday, October 28, 2010 5:38 PM -
Actually - I put this into a second function and called it after the one that re-links the table and it works! Thanks
Jean HusaThursday, October 28, 2010 5:38 PM