Results 1 to 3 of 3
  1. #1
    stalk is offline Competent Performer
    Windows 10 Office 365
    Join Date
    May 2014
    Posts
    143

    How to Maximize form and hide navigation pane ,menu when opened


    I tried to use the following code but it's not maximizing.

    Private sub form_load()
    DoCmd.Maximize
    End Sub

    what changes can I make?

    Thank you

  2. #2
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I just copied your code to a test dB - worked without error. Are you getting any error messages?
    Have you done a Compact & Repair?

  3. #3
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,992
    The code will maximise the form but has no effect on the navigation pane.
    The code required to hide the navigation pane is
    Code:
        
    DoCmd.NavigateTo "acNavigationCategoryObjectType"    
    DoCmd.RunCommand acCmdWindowHide
    I have an example app which shows how to control all application features including managing the nav pane, ribbon, taskbar and even hiding the application interface completely.
    See http://www.mendipdatasystems.co.uk/c...ace/4594365418
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

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

Similar Threads

  1. Replies: 17
    Last Post: 07-09-2021, 02:55 PM
  2. Un-hide a table in the Navigation pane
    By tfbalogh in forum Access
    Replies: 1
    Last Post: 04-03-2020, 06:01 PM
  3. Replies: 6
    Last Post: 07-22-2014, 03:18 AM
  4. Replies: 5
    Last Post: 03-28-2014, 11:28 AM
  5. Replies: 6
    Last Post: 10-30-2013, 02:47 PM

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