Navigating to a different tab in navigation subform

后端 未结 3 1573
轮回少年
轮回少年 2020-12-18 12:13

In an ms access 2010 database, I have a listbox whose afterupdate procedure needs (among other things) to navigate to a specific tab in a navigation subform. I can get it t

相关标签:
3条回答
  • 2020-12-18 12:48

    Access gave a relatively decent explanation of what the proper syntax of the path is.

    Path argument is of the form: MainForm1.Subform1>Form1.Subform1

    So your BrowseTo command should look like this:

    DoCmd.BrowseTo acBrowseToForm, "qryListCommunicationForms", "Main.NavigationSubform>FindClientsNavigation.NavigationSubform"

    0 讨论(0)
  • 2020-12-18 12:56

    Use the syntax below

    DoCmd.BrowseTo acBrowseToForm, "qryListCommunicationForms", "Main.NavigationSubform>findClientsNavigation.NavigationSubform", "ClientNumber = " & lstbxClients.Column(0)
    

    and

    DoCmd.BrowseTo acBrowseToForm, "ListAddresses", "Main.NavigationSubform>findClientsNavigation.NavigationSubform", "ClientNumber = " & lstbxClients.Column(0)
    

    The only change is the second parameter syntax , use

    "Main.NavigationSubform>findClientsNavigation.NavigationSubform"

    Hope this helps

    0 讨论(0)
  • 2020-12-18 13:07

    The easiest way to do it :

    Form_NavFormName.NavigationSubform.SourceObject = "FormName"
    
    0 讨论(0)
提交回复
热议问题