Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果标题有误,我很抱歉,但我想这就是我要问的意思。
所以我创建了一个我想使用的子表单,有点像控制面板,它允许用户选择一系列不同的表单。因此,相同的子表单最终会出现许多不同的父表单。我想用简单的
docmd.close acform
但我正在寻找一种方法来引用父表单,如“活动表单”或类似的东西,这样我就可以在打开预期表单之前关闭任何打开的表单。这样我就可以在很多表单中使用相同的子表单(控制面板)并且它可以在全球范围内使用?
谢谢贾斯汀
从子表单中,您可以通过以下方式获取其父表单的名称:
Me.Parent.Name