Results 1 to 3 of 3
  1. #1
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142

    Navigate Navigation Control from VBA


    I have a navigation control w/ several navigation buttons. When the user clicks a Nav Button the button has specific formatting to indicate it's pressed. However, sometimes I need to "navigate" the Navigation Subform, or switch tabs, from my subform and not by clicking the nav buttons directly. I can do this but then the related nav button does not change to show pressed formatting. The nav "tab" I was previously on will still indicate being pressed. If I run my mouse over the nav buttons the hover events fire and then correct formatting is applied to the buttons. How to change the nav button to indicate pressed via vba?

    I use the following code to "navigate" the navigation subform:

    Code:
    Private Sub cmdButton_Click()
        DoCmd.BrowseTo acBrowseToForm, "frmJobDetails", "Home.NavigationSubform", "JobPK=" & Me.JobPK
        
    End Sub

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Tested code. The button that is browsed to shows selected highlight. Cannot replicate issue.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142
    I've just run an MS Office update and am no longer having the issue either. Thank you for your time.

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

Similar Threads

  1. Replies: 3
    Last Post: 10-03-2022, 12:39 PM
  2. Get used with Navigation Control
    By domivax in forum Forms
    Replies: 1
    Last Post: 02-17-2015, 08:06 AM
  3. Replies: 2
    Last Post: 11-27-2014, 01:06 PM
  4. Using Navigation Control
    By PlamenGo in forum Access
    Replies: 9
    Last Post: 04-08-2012, 01:57 AM
  5. Control Navigation Bar
    By Patrick.Grant01 in forum Access
    Replies: 0
    Last Post: 05-17-2009, 06:16 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