>>>I need help to call a function on the main form from within a subform (datasheet)
>>>
>>>Thank You.
>>>
>>>Mathias
>>Ooops. Is this solely access or you mean VFP forms ?
>>Cetin
>
>It's really Access. But how do you achieve that in VFP? I might get a clue.
>
>Mathias
Mathias,
Good my Access knowledge is near 0, for VFP can help. The easiest way to make a form PEM (prop.event,method) accessible from anywhere is to activate the form with a name clause :
do form myform name somename linked
Somename is now an object ref to form throughout the app. It's released as form is released (or Form is released as it's released).
There are other ways too (as someone said - you could do it in VFP in at least three ways or cannot do at all). ie: _screen.forms collection hold object refs to form(set)s.
Cetin