如何打开子表单 [英] how to open Sub form

查看:63
本文介绍了如何打开子表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下命令打开Sub Form,但我收到错误。


请确认我是否可以使用此命令打开子表单:



调用DoCmd.OpenForm(" Forms![main_form]![sub_form]",acNormal ,,,, acWindowNormal)

I am trying to open Sub Form using the command below, but i am getting error.

Please confirm if i can open sub form using this command:


Call DoCmd.OpenForm("Forms![main_form]![sub_form]", acNormal, , , , acWindowNormal)

推荐答案

当子窗体打开时,子窗体通常会自动打开。如果您试图独立地打开通常用作子表单的表单,您只需像打开任何其他表单一样打开它,而不是将其称为子表单。 form。
A subform would normally open automatically when the main form it''s part of opens. If you''re trying to independantly open a form that is normally used as a subform, you simply open it as you would any other form, with no reference to it being a "sub" form.



子窗体通常会在它打开的主窗体时自动打开。如果您试图独立地打开通常用作子表单的表单,您只需像打开任何其他表单一样打开它,而不是将其称为子表单。形成。
A subform would normally open automatically when the main form it''s part of opens. If you''re trying to independantly open a form that is normally used as a subform, you simply open it as you would any other form, with no reference to it being a "sub" form.



我打开主窗体,其中也有一个子窗体。我知道你说当我打开主窗体时,子窗体也会被打开。


但除非我打开这样的子窗体明确:

I am opening the main form, which has a subform in it as well. I know you are saying when i open the main form, the subform gets opened as well.

But unless i open the subform explicity like this:

展开 | 选择 | < span class =codeLinkonclick =WordWrap(this);> Wrap | 行号


如何仅打开子表单。这个子表单在主表单上,但我只想打开子表单,而不是整个表单。


我该怎么做


我尝试过这个:
How would you open a subform only. This subform is on a mainform but i want to open the subform only , not the whole form.

how would i do that

I have tried with this:
展开 | 选择 | Wrap | 行号


这篇关于如何打开子表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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