>Hi,
>I have a main form to call another sub form,
>there are some text boxes on the main form, such as txtCusno txtClientName, txtClentAddr etc..
>
>
>DO FORM frmOrder WITH thisform.txtCusno.Value
>
>
>the sub form also have the same text boxes, txtCusno, txtClientName, txtClientAddr etc which is same as the parent form
>I want the text box can also display the same value as the parent form.
>How to do it ?
>
>Please advise.
>Thanks.
>Derek
What is used as RowSource for these textboxes? Can you use the same table and row?
Otherwise you can pass just thisform to the child form
In the init of the Child form you will do
lparameters toForm
thisform.oCallingForm = toForm
thisform.txtCusNo.value = toForm.txtCusNo.Value
etc.
If it's not broken, fix it until it is.
My Blog