Referring to different parent forms

N

NorthernMonkey

I have a subform that is referred to be 4 different parent forms whic
are themselves accessible by 4 tabs on the same form.

I am trying to automate some data entry and have to refer to the paren
form that the sub form is currently opened through. I can use th
"FormName" command to tell me the name of the subform currently open
but is there a way of telling the current parent of this form
 
R

RoyVidar

NorthernMonkey said:
I have a subform that is referred to be 4 different parent forms
which are themselves accessible by 4 tabs on the same form.

I am trying to automate some data entry and have to refer to the
parent form that the sub form is currently opened through. I can use
the "FormName" command to tell me the name of the subform currently
open, but is there a way of telling the current parent of this form?

Me.Parent.Name

should give the name of the parent form
 
Top