Results 1 to 3 of 3
  1. #1
    cassidym is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    44

    Hide The Object List in 07

    How do I hide the Object List in 07? My user keeps fooling with it and causing general havoc. Consequently, when she opens it, I want the Switchboard to show and not the object list.

    This was easy to do in '03 so I suppose Microsoft had to make it unintuitive in '07.

    Appreciate any advice



    Thanks

  2. #2
    DaveT is offline Access Developer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    May 2010
    Location
    Texas
    Posts
    69
    You can set the startup configuration to hide the navigation pane:
    Office Button (top left), Access Options, Current Database, under Navigation, clear the Display Navigation Pane check box.

    If you want to use VBA, you can look at:
    http://www.accessmonster.com/Uwe/For...-default-Menus

    I modified the code from above as follows:

    Public Sub DisplayNavPane(IsVisible As Boolean)
    '7/29/2009 DLT
    Dim strTableName As String

    On Error GoTo DisplayNavPaneError
    'strTableName = "local_Parameters" 'could use a tablename, or a module acModule, etc
    'but it runs OK using mSysObjects

    strTableName = DLookup("Name", "mSysObjects", "[Type] = 1 AND [Flags] = 0")

    DoCmd.SelectObject acTable, strTableName, True
    If IsVisible = False Then
    DoCmd.RunCommand acCmdWindowHide
    End If
    Exit Sub
    DisplayNavPaneError:
    If Err.Number = 2544 Then
    'Get the name of the first table in the mSysObjects table
    strTableName = DLookup("Name", "mSysObjects", "[Type] = 1 AND [Flags] = 0")
    Resume
    Else
    MsgBox "Error encountered in DisplayNavPane subroutine!"
    End If
    End Sub


    Put code in standard module.
    To use the code:

    DisplayNavPane True

    or

    DisplayNavPane False

    Can put this in splash form On Open event, command button OnClick, etc.

  3. #3
    cassidym is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    44
    Works great! Thanks.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Hide and show tekstbox
    By Patience in forum Access
    Replies: 3
    Last Post: 06-18-2010, 06:15 AM
  2. Hide all but forms
    By Bird_FAT in forum Programming
    Replies: 1
    Last Post: 05-25-2010, 02:40 PM
  3. Hide/UnHide forms
    By access in forum Forms
    Replies: 3
    Last Post: 06-03-2009, 07:48 AM
  4. how to hide the fields in subform
    By tinytree in forum Forms
    Replies: 3
    Last Post: 05-01-2009, 07:56 AM
  5. Hide the Database window
    By wasim_sono in forum Access
    Replies: 5
    Last Post: 02-02-2006, 06:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums