Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Here's my doubt, I have an Navigation Control called "navControl" that haves three tabs("Venda", "Metaliza??o", "Inje??o"), and I have one Check Box with three options, I need to change tab according the selected option.

I think I need to use DoCmd.BrowseTo, but don't know how :/

Someone can help me? Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
202 views
Welcome To Ask or Share your Answers For Others

1 Answer

You must set the Navigation Target Name to the name of the form each navigation tab opens in Properties/Data tab of the navigation control..

Private Sub YourOptionGroup_Click()
    With Me
        Select Case .YourOptionGroup.Value
            Case 1:
                DoCmd.BrowseTo acBrowseToForm, "Form1", "YourMainFormName.NavigationSubform"
            Case 2:
                DoCmd.BrowseTo acBrowseToForm, "Form2", "YourMainFormName.NavigationSubform"
            Case 3:
                DoCmd.BrowseTo acBrowseToForm, "Form3", "YourMainFormName.NavigationSubform"
        End Select
    End With
End Sub

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...