>Hi Ed,
> When I process the code ,It has error said property oMainForm cannot be found.
> And the program pause at
> this.oMainForm = toParentObject
>
> Do you know why ?
Did you create a form property in Replace called oMainForm? If not, you have to do that before you can use it.
>JK
>>
>>DO FORM REPLACE
>>
>>Replace as modified now accepts a parameter, the name of the object it's going to update, so from within MainForm:
>>
>>DO FORM REPLACE WITH thisform
>>
>>passes the object reference for the current form as a parameter.