What form am I on?

  • Thread starter Thread starter BobG
  • Start date Start date
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
 
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
 
Back
Top