I have made a copy of a form. Now when I write a code on the subform of the copied form the subform of the original form also gets affected.How can I avoid this?
I have made a copy of a form. Now when I write a code on the subform of the copied form the subform of the original form also gets affected.How can I avoid this?
Sounds like you are using the same subform in both forms.
So you have to make a copy of form used as source for subform too. And then set new form as source of subform in second parent form. And don't forget to rename subform in second parent form, as having 2 subforms with identical names in different forms can cause problems later.
NB! On parent form is subform control. Subform is not a form, it is a container. The child form is the source of subform container. The hierarchy is Parent Form > subform > Child Form.
So you have to make a copy of form used as source for subform too. And then set new form as source of subform in second parent form. And don't forget to rename subform in second parent form, as having 2 subforms with identical names in different forms can cause problems later.
NB! On parent form is subform control. Subform is not a form, it is a container. The child form is the source of subform container. The hierarchy is Parent Form > subform > Child Form.
Thanks!!! It worked. God Bless You!