
Setting a control who's name is stored in a variable
I have a piece of code that gets the name of a text box on a form and
stores it in a variable called tmpctrl.
Later in the function, I want to set the value of the text box. (Let's
say 1000)
My problem is I do not know the correct way to set the value of the box
through vba.
When I type in:
tmpctrl = "1000"
it just sets the variable "tmpctrl" to 1000 and not the control whos
name is stored in tmpctrl.
Can anyone help??
Thanx,
Jay
Sent via Deja.com http://www.*-*-*.com/
Before you buy.