【发布时间】:2013-11-10 15:20:06
【问题描述】:
在 Ms Access 中,我有两个表(Table1、Table2)和两个基于这些表的子表单(Table1_Subform、Table2_Subform)。 (参见附件中的示例:http://ge.tt/6S1rQlw/v/0)接下来我有一些主表单“MasterForm”,它具有三个选项卡(PageBoth、Page1、Page2),Page1 包含 Table1_Subform,Page2 包含 Table2_Subform。
我需要在“PageBoth”选项卡上拥有相同的这两个子表单,是否可以以某种方式以编程方式进行操作? 我需要类似的东西
PageBoth.Controls.Add(Table1_Subform)
PageBoth.Controls.Add(Table2_Subform)
这些子表单应该出现在“PageBoth”选项卡上。还是不可能?
我可以将这些子表单的新实例放到“PageBoth”中,但在这种情况下,我需要在 VBA 代码中为两个子表单实现相同的逻辑。
感谢任何帮助。 谢谢
【问题讨论】:
标签: forms vba ms-access ms-access-2007 ms-access-2010