Results 1 to 10 of 10
  1. #1
    LeonS is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2014
    Posts
    115

    Navigation Pane is "butting in" to a form in Form View.

    Hello! My db has 4 main forms. Title (on opening the db), Contacts, Utilities and EmailsF. When I move from Title to Contacts (by the press of a button) the form opens, but the screen includes the Navigation pane. This only happens with the Contacts form. And if you leave that form and then return, the Navigation pane is there. I have looked at the Event Procedures for the form and can find nothing that even mentions the Navigation pane. The only thing I have found is a way to hide the Navigation pane permanently. Not something I want to do. The Event Procedures for the Contacts form are On Load, On Open, On Activate. The instructions are position, size, set focus and an inherited refresh. I am sure there is an instruction in there somewhere, but I cannot find it. This problem is fairly new. It has not been happening since I started working on the database. Leon

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,127
    In case its useful, I'll provide code to show/hide & minimise the navigation pane

    Add the following code to a standard module:

    Code:
    Public Function MinimizeNavigationPane()
    
        DoCmd.NavigateTo "acNavigationCategoryObjectType"
        DoCmd.Minimize
            
    End Function
    
    Public Function ShowNavigationPane()
    
        DoCmd.SelectObject acForm, , True
        
    End Function
    
    Public Function HideNavigationPane()
    
        DoCmd.NavigateTo "acNavigationCategoryObjectType"
        DoCmd.RunCommand acCmdWindowHide
            
    End Function
    Now add the following to your form to minimise the navigation pane when your form opens

    Code:
    Private Sub Form_Load()
    
        MinimizeNavigationPane
    
    End Sub
    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

  3. #3
    LeonS is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2014
    Posts
    115
    Isladogs - thanks for that. I will add that code etc later.
    But I am really interested as to why I have to say "stop" or "minimise", when it should not happen in the first place!. What happened to make this unwanted thing happen? I can go between forms, no problem. All of a sudden this nuisance affects 1 form. It does not happen on previous versions (every now and again, I make a copy and start with that - but keeping the old copy for comparison. I have an old version of the form which works well. But I have added more functionality to the latest version!! Leon

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,127
    There could be many reasons why it only affects that one form e.g. all forms except that one are popups, code used in startup events etc ....
    Without looking at your app, all I can do is make informed guesses, which may not be particularly helpful
    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

  5. #5
    DittoBird's Avatar
    DittoBird is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Apr 2015
    Location
    Newfoundland & Labrador, Canada
    Posts
    59
    Apologies if you've done this, but have you turned off the navigation pane, Leon? You can always bypass this by holding the shift key when you open the accdb. This is accessed by clicking on File and then Options.

    Click image for larger version. 

Name:	NavOption.JPG 
Views:	19 
Size:	111.8 KB 
ID:	46150

  6. #6
    LeonS is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2014
    Posts
    115
    Isladogs - Thank you! Yes, you were right, you're informed guess was perfect. It opens properly. Thank you ! Leon

  7. #7
    LeonS is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2014
    Posts
    115
    DittoBird - many thanks for your contribution. But the problem was solved before I got to your reply!! Many thanks, Leon

  8. #8
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    By any chance is there code on this form that resizes something (that thing may turn out to be the nav pane) or creates a link to a nav pane object to do an export?
    Are you using DoCmd.SelectObject somewhere in your code when this form opens?

    Maybe post form code. I cannot recall ever needing a form Activate event.

    EDIT - so the problem was what, exactly?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  9. #9
    LeonS is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2014
    Posts
    115
    Micron - Thanks for that. The problem has been solved!! The form was not marked as Pop Up. And I thought I checked that, obviously not.

  10. #10
    LeonS is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2014
    Posts
    115
    Chaps - just to give you an update on my (lack of) coding skills. You will be pleased to know that I checked all the Controls against the code. I have reported already that I printed off all the code behind the 4 main Forms. There were 50 pages. I have since been through the code and removed all those parts that were not needed or appeared to be duplicates of earlier attempts to get something to work. I am now down to 21 pages!! Although that will increase when I add in all the lines of code that are missing, through lack of knowledge. And the database now Repair and Compacts down to 11 Mb. Down from 112 Mb. And it all works - although there are a couple of (I hope) small things I need to fix. Thank you, Leon

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

Similar Threads

  1. Form not showing content in "Form View" mode
    By ahuffman24 in forum Forms
    Replies: 5
    Last Post: 05-20-2019, 08:12 AM
  2. How to "remove" Navigation Pane?
    By VAer in forum Access
    Replies: 3
    Last Post: 09-12-2018, 05:12 PM
  3. Navigation form and "search Fields"
    By gheyman in forum Forms
    Replies: 4
    Last Post: 07-22-2017, 12:41 PM
  4. Replies: 4
    Last Post: 10-29-2015, 01:46 PM
  5. Replies: 1
    Last Post: 09-07-2015, 08:00 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