vba 在 Access 2007 中使隐藏窗体再次可见

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11576783/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-11 16:58:33  来源:igfitidea点击:

Making a hidden form visible again in Access 2007

formsms-accessvbams-access-2007

提问by Sinister Beard

If you open a form using acHidden, is it possible to make it visible again using VBA? I've searched around but can only find info on how to open a hidden form in the first place (which I know how to do).

如果您使用 acHidden 打开表单,是否可以使用 VBA 使其再次可见?我四处搜索,但首先只能找到有关如何打开隐藏表单的信息(我知道该怎么做)。

回答by Fionnuala

You can set the visible property:

您可以设置可见属性:

Forms!MyForm.Visible = True

回答by Sinister Beard

Nevermind, it was just as simple as Me.Visible=True. Sorry!

没关系,它就像 Me.Visible=True 一样简单。对不起!

回答by ome

Have you tried acWindowNormal? Like

你试过 acWindowNormal 吗?喜欢

DoCmd.OpenForm "myForm", acNormal, , , acFormEdit, acWindowNormal