> thanks stefan
>
> yeah i agree that it is good idea but the problem is that in my case the number of variable in sub form can increase to upto 10-15 in a later stage, so i wanted an automatic solution to avoid maitenance and reduce program size
>
> nishant
>
>
> >
> > Hi Nishant,
> >
> > See Anders' reply for a better solution, especially when you want to run several instances of the same form.
> >
> >
> > hth
> > -Stefan
I would agree with Stefan and Anders. Add properties to the form. Having Public variables will give you a lot of problems.
Regards
Tushar