本文介绍了更改“导航控件"上的导航标签访问?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的疑问,我有一个名为"navControl"的导航控件,它具有三个选项卡("Venda",Metalização",Injeção"),并且我有一个带有三个选项的复选框,我需要根据以下选项卡选定的选项.
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.
我认为我需要使用DoCmd.BrowseTo,但不知道如何:/
I think I need to use DoCmd.BrowseTo, but don't know how :/
有人可以帮助我吗?谢谢
Someone can help me? Thanks
推荐答案
您必须将 Navigation Target Name 设置为导航控件的属性/数据"选项卡中打开的每个导航选项卡的表单名称. ..
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
这篇关于更改“导航控件"上的导航标签访问?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!