Mandy,
Colin has given you one method of getting a reference to the calling form. There is also another approach.
In the child form, create the custom oCallingForm property, as per Colin's suggestion. Then in the Load event of the child form, do this:
[tt]THISFORM.oCallingForm = _SCREEN.ActiveForm[/tt]
From that point on, the child form will have access to all the properties and methods of the calling form. So, for example, if the calling form has a button named cmdPaste, and you want to run the code in that button's Click event from within the child form, you could do this:
[tt]THISFORM.oCallingForm.cmdPaste.Click[/tt]
The point is that, when the Load event of a child form executes, the calling form is still the active form. So you can always get an object reference to it, without having to pass a parameter.
I'm not saying that this method is necessarily better than Colin's suggestion. It just a different way of achieving the same goal.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips and downloads