Results 1 to 2 of 2
  1. #1
    mp3909 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    154

    Query not showing in Navigation Pane

    I create 2 temporary queries using access vba via the CurrentDb.CreateQueryDef() method.


    The first query I can see visible in the navigation pane but the second query I do not see until I physically click on one of the existing queries in the navigation pane.

    Is there a way to refresh the navigation pane via vba so that it shows all objects?

  2. #2
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    try Application.RefreshDatabaseWindow
    or
    CurrentDb.QueryDefs.Refresh (I might have that syntax wrong)
    FWIW, a temporary query is a specific thing - a query you create that only exists in machine memory and dies when the procedure is over. A query you create may be temporary to your way of thinking, but I wouldn't call it that.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 2
    Last Post: 01-18-2017, 01:40 PM
  2. Replies: 1
    Last Post: 11-13-2014, 07:54 AM
  3. Replies: 2
    Last Post: 04-21-2013, 08:03 AM
  4. Navigation Pane
    By Patrick.Grant01 in forum Programming
    Replies: 11
    Last Post: 01-08-2013, 04:55 PM
  5. Navigation Pane Help Please...
    By Kristena in forum Programming
    Replies: 2
    Last Post: 01-13-2012, 03:03 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