Refer to a subform

Joined
Jun 8, 2010
Messages
2
Reaction score
0
I am trying to set up a function that returns the name of the form on which the active control is.

I used Screen.ActiveForm.Name which fails on a subform. The name returned is the main form.

I tried Screen.ActiveControl.Parent.Name which returns a page when the control is on a tabbed page.

I did a search on the Internet and have not come up with a solution. Any suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top