Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2010
    Posts
    8

    Hide database window in Access 2010


    I can't find the equivalent way of hiding the database window in Access 2010 as in Access 97 (Tools, Options). How do I accomplish this in 2010? (I'm not so worried about security - just want the opening form to stand out without the background clutter.)

    Thank you!

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    does that little 'A' in the upper left hand corner of the interface replace the ribbon in 07? if it does, I suspect that the access options are in that menu just like 07. In 07, go to options > current database > show navigation pane.

  3. #3
    DaveT is offline Access Developer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    May 2010
    Location
    Texas
    Posts
    69
    Can use this such as:

    DisplayNavPane True
    or
    DisplayNavPane False

    Code:
    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

  4. #4
    Join Date
    Apr 2010
    Posts
    8

    Hide database window in Access 2010

    ajetrumpet and DaveT,

    I believe you both answered my question correctly. I see now that Database Window and Navigation Pane are somewhat equivalents in the different versions.

    However, I owe both of you an apology - I asked the wrong question. Actually my problem is not with hiding the Navigation Pane, but with hiding the ribbon bar. I find I can almost do that through File, Options, Customize Ribbon. Maybe that will be sufficient - will play around it with it a bit more.

    In Microsoft Help for Access, under "Customize the Ribbon", they mention creating a USysRibbons table with XML code in it. Not sure I want to get that deep into it, but may if necessary. If you or someone else knows a simpler way of hiding almost everything on the screen besides the opening form, I'd appreciate it.

    Thanks.

  5. #5
    DaveT is offline Access Developer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    May 2010
    Location
    Texas
    Posts
    69
    Ctrl+F1 toggles ribbon. Also:

    DisplayRibbon True
    or
    DisplayRibbon False

    Code:
    Public Sub DisplayRibbon(yShowIT)
    '8/2/09 DLT
    On Error Resume Next
        
        If Application.Version >= 12 Then
            If yShowIT Then
                DoCmd.ShowToolbar "Ribbon", acToolbarYes
                
                Else
                DoCmd.ShowToolbar "Ribbon", acToolbarNo
            End If
            
        End If
        
    End Sub

  6. #6
    Kevin Johnston is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Apr 2010
    Posts
    8

    Smile Hide database window in Access 2010

    Dave,

    Perfectamente! This did the job great!

    Thanks.

    Kevin J.

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

Similar Threads

  1. Minimize access window problem
    By McHammer in forum Forms
    Replies: 2
    Last Post: 04-24-2010, 05:14 AM
  2. 2 questions about Access' main window
    By nford in forum Access
    Replies: 16
    Last Post: 02-28-2010, 02:47 PM
  3. How can I hide/unhide DB window with a single button?
    By aquaraider in forum Programming
    Replies: 2
    Last Post: 10-09-2009, 07:01 AM
  4. Access Window On top
    By Jas_The_Ace in forum Programming
    Replies: 0
    Last Post: 02-28-2009, 04:28 PM
  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