Hi Everyone,
I was wondering if someone could hele me with textbox problem. I have a form with many textobxes. say text1, text2,text3,text4. Now i run Dlookup() function which returns me text same as textbox names (text1,text2,text3,text4) depedning on condition which I store in a variable called temp.
Now what I want to do is I want to disable the textbox whose name is returned. so, If my variable temp gets value text1 then I want to disable text1.
I tried to do temp.Enabled=False, but it doesnt work.
Is there any other way of doing this?
Thanks
I was wondering if someone could hele me with textbox problem. I have a form with many textobxes. say text1, text2,text3,text4. Now i run Dlookup() function which returns me text same as textbox names (text1,text2,text3,text4) depedning on condition which I store in a variable called temp.
Now what I want to do is I want to disable the textbox whose name is returned. so, If my variable temp gets value text1 then I want to disable text1.
I tried to do temp.Enabled=False, but it doesnt work.
Is there any other way of doing this?
Thanks