Steve Erbach
erbachs at gmail.com
Tue Mar 21 11:35:54 CST 2006
Charlotte, » From the parent form you should always be able to use > Me.subformcontrol.Form.name to get the name of the subform object > itself, once you know that a sourceobject exists. « That's exactly what happens with my application. It's just that now I'd like to have a more generic way of determining which subform control contains the current subform. Looks like a variation of Shamil's technique is going to be it; that is, look at all the subforms that have the SourceObject property set and see if one of them has the form name of the current subform. Thanks, Charlotte. Steve Erbach http://TheTownCrank.blogspot.com On 3/20/06, Charlotte Foust <cfoust at infostatsystems.com> wrote: > The sourceobject is a pointer to an object viewed in the control. Tab > controls aren't containers in the same sense as are forms and subforms > so they always get ignored. How you acquire the name depends on where > you do it from. The subform itself always knows who it is, but the > parent doesn't need to know as long as the sourceobject is set, and it > doesn't necessarily have to be set to the same sourceobject all the > time. From the parent form you should always be able to use > Me.subformcontrol.Form.name to get the name of the subform object > itself, once you know that a sourceobject exists. > > > Charlotte Foust >