View Full Version : current control name if in a subform


bdubuc
01-03-2002, 07:10 AM
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

bdubuc
01-03-2002, 07:29 AM
I found it.

It's Forms!MyMainform.ActiveControl.Name.

I must be to tired!!!