current control name if in a subform

bdubuc

bdubuc
Local time
Today, 12:19
Joined
Dec 31, 2001
Messages
18
I have a main form with 3 subforms named sub1, sub2 and sub3. All subs are in fact the same subform, but they have different recourd sources.

I want to know in wich subform (sub1, sub2 or sub3) I am when I am clicking in a control in one of the subforms.

Thanks
 
I found it.

It's Forms!MyMainform.ActiveControl.Name.

I must be to tired!!!
 

Users who are viewing this thread

Back
Top Bottom