What form am I on?

B

BobG

I'm expirementing with using the same subform on two different main forms.

However, I need different code (in just a few places) if the subform is on
one
form as oposed to the other.
There are also instances where both forms will
be open at the same time.

So... I don't think IsOpen or IsLoaded will do the trick.

How can I determine what main form the subform is on?

Thank you,
BobG
 
A

Al Camp

Thanks anyway folks.
Looks like I can use Me.Parent.Name to make my code decision.
I had an error in my testing that made it look as thought Me.Parent.Name
wasn't working
Bob G
 

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