>do you mind giving me the exact syntax for each, i am not that familiar with this type of code.
>thank you
>frank
As I said, In the Click() of the commandbutton calling another form.
DO FORM Secondform WITH Thisform.
In the Init() of the Secondform
LPARAMETER toCallingForm
*-- oCallingForm is a property of the form that you have to create
Thisform.oCallingForm = toCallingForm
You can use this property in the Release() of the second form.
IF TYPE('Thisform.oCallingForm') = 'O' AND NOT ISNULL(Thisform.oCallingForm)
Thisform.oCallingForm.Visible = .T.
ENDIF
- Jayesh