|
|
SynopsisHide or Display Navigation Pane (Database Window). This function provides a convenient
wrapper that runs the command acCmdWindowHide CODE ' HideNavigationPane
' http://www.utteraccess.com/wiki/index.php/HideNavigationPane ' Code courtesy of UtterAccess Wiki ' Licensed under Creative Commons License ' http://creativecommons.org/licenses/by-sa/3.0/ ' ' You are free to use this code in any application, ' provided this notice is left unchanged. ' ' rev date brief descripton ' 1.0 2011-03-06 ' Public Function HideDbWindow(bHide As Boolean) As Boolean '*************************************************************************************** ' Procedure : HideDbWindow ' Purpose : hide or display the database window (Access 97-2003) or Navigation Pane (Access 2007, 2010) ' Returns : Boolean '*************************************************************************************** ' Dim bResult As Boolean On Error GoTo HideDbWindow_Error If bHide Then DoCmd.SelectObject acTable, , True DoCmd.RunCommand acCmdWindowHide Else DoCmd.SelectObject acTable, , True End If bResult = True HideDbWindow = bResult HideDbWindow_Exit: On Error GoTo 0 Exit Function HideDbWindow_Error: MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure HideDbWindow of Module basFormManagement" HideDbWindow = False Resume HideDbWindow_Exit End Function
|
| This page has been accessed 1,685 times. This page was last modified 08:43, 6 April 2011 by Jack Leach. Contributions by Glenn Lloyd Disclaimers |