Gan, variables are local to the method where they are initialized. You can use form properties or you can use public variables to hold this data.
HTH
Barbara
>I have a form with some textboxes. When launching the form, I put a few codes to define some memory variables, eg.
>
>store space(30) to mname
>
>For that, I change the controlsource for the txtName properties to mname. However it seems that the txtName couldn't read the memory variable, and coudln't find the variable "mname".
>
>Please point me to this problem.
>Thanks.
>
>Gan