Results 1 to 6 of 6
  1. #1
    MattLewis is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    17

    How to prevent Navigation Pane from collpasing

    Anytime I open a form in "Modal" mode, it collapses the navigation pane. Is there a way to prevent this inconvenience?

  2. #2
    MattLewis is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    17
    It doesn't collapse the pane if I use WindowMode:=acDialog in the DoCmd.OpenForm. But then the whole form opens in a new window. Boo.

  3. #3
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    The whole point of Modal is to not allow anything else to happen until the form is closed, so why would you want the nav pane to still show?

  4. #4
    MattLewis is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    17
    Quote Originally Posted by aytee111 View Post
    The whole point of Modal is to not allow anything else to happen until the form is closed, so why would you want the nav pane to still show?
    Because I have to turn around and re-open the navigation pane after the modal form closes. It's true that I don't want anything else to happen while the modal form is open, but I also don't want anything else (for example, the navigation pane) to close while it's waiting in the background.

    If the navigation pane is open before the modal form is shown, it should (still) be open after the form closes.

  5. #5
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    You will have to open it again - in the OnClose event of the modal form add this:

    Code:
    Private Sub Form_Close()
    
        DoCmd.SelectObject acTable, , True
        
    End Sub

  6. #6
    MattLewis is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    17
    Thank you. That works.

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

Similar Threads

  1. Replies: 1
    Last Post: 08-14-2015, 12:01 PM
  2. Replies: 2
    Last Post: 04-21-2013, 08:03 AM
  3. Navigation Pane
    By Patrick.Grant01 in forum Programming
    Replies: 11
    Last Post: 01-08-2013, 04:55 PM
  4. Navigation Pane Help Please...
    By Kristena in forum Programming
    Replies: 2
    Last Post: 01-13-2012, 03:03 PM
  5. Navigation Pane pain
    By Felmer Dingle in forum Access
    Replies: 0
    Last Post: 06-17-2010, 11:09 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