具有Access 2013运行时版本的自定义功能区 [英] Custom Ribbon with Access 2013 Runtime Version

查看:104
本文介绍了具有Access 2013运行时版本的自定义功能区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几种自定义色带应用于不同的形式。这些表单由主窗体上的导航控件访问。使用完整版Access 2013时,功能区将按预期更改为指定的子表单功能区。但是,当使用运行时
版本或使用/ runtime开关启动数据库时,功能区不会更改并保持原始功能区。

I have several custom ribbons applied to different forms. These forms are accessed by a navigation control on a main form. When using the full version of Access 2013 the ribbon changes to the assigned sub form ribbon as expected. But when using the runtime version or starting the database with the /runtime switch the ribbon does not change and stays as the original ribbon.

我最初在完整版Access中找到了我必须在子表单上单击才能更改功能区。通过在每个导航按钮的单击事件中将焦点设置为导航子窗体,我能够解决这个问题。使用运行时
版本时,功能区不会使用此代码或单击子表单进行更改。我也尝试从导航按钮设置子表单的功能区名称属性,但也不起作用。

I initially found in the full version of Access that I had to click on the sub form to make the ribbon change. I was able to get around this by setting the focus to the navigation subform in the click event of each navigation button. When using the runtime version the ribbon does not change either with this code or by clicking on the sub form. I have also tried setting the ribbon name property of the sub form from the navigation button and that does not work either.

Private Sub NavigationButton_Shows_Click()

    表格![frm_Main]![NavigationSubform] .SetFocus

   表格![frm_Main]![NavigationSubform] .Form.RibbonName =" myShows"

End Sub

Private Sub NavigationButton_Shows_Click()
    Forms![frm_Main]![NavigationSubform].SetFocus
    Forms![frm_Main]![NavigationSubform].Form.RibbonName = "myShows"
End Sub

同样,一切正常,完整版访问权限,但是丝带不随运行时版本而改变。

Again, everything works fine with full version of access, but the ribbons do not change with the runtime version.

非常感谢任何帮助。  

Any help is greatly appreciated.  

推荐答案

您好rbeezley,

Hi rbeezley,

感谢您在MSDN论坛上发帖。

Thanks for posting in MSDN forum.

我也可以重现这个问题,因为问题很复杂,我试图让一些高级工程师参与这个问题,这需要一些时间。非常感谢您的耐心。

I could reproduce this issue too, since the issue is complex, I'm trying to involve some senior engineers into this issue and it will take some time. Your patience will be greatly appreciated.

很抱歉给您带来不便,祝您有愉快的一天!

Sorry for any inconvenience and have a nice day!

关心& Fei

Regards & Fei


这篇关于具有Access 2013运行时版本的自定义功能区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆