简体   繁体   中英

MS Access 2003/2007 - Subform as control panel, closing parent form with global like reference?

I am sorry if the title is wrong, but I think that is what I mean to ask.

So I have a subform created that I would like to use, sort of like a control panel, that allows user to select a range of different forms. So the same subform ends up in a lot of different parent forms. I would like to use simple

docmd.close acform

but i am looking for a way to reference the parent form like "active form" or something like that so I can close whatever form is open before opening the intended form. that way i can use the same sub form (control panel) in a lot of forms and it works globally??

thanks justin

在子表单中,您可以使用以下内容获取其父表单的名称:

Me.Parent.Name

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM