Hi all,
Hopefully, I can make myself understood on this one. Seems simple enough, but I just cannot work it out.
I have one line of code which reads:-
myControlName = [FORMS]![FORM1]![txt_myControlName]
Text field txt_myControlName stores the name value of another text box on that form (this value can be one of nine text boxes).
Now, from elsewhere, I have this code where I want to reference the value in that textbox:-
[FORMS]![FORM1]![myControlName] = myList.
I've tried this [FORMS]![FORM1]!['" & myControlName & "'] and other variations, but it fails each time.
Help appreciated and thanks in advance.
Hopefully, I can make myself understood on this one. Seems simple enough, but I just cannot work it out.
I have one line of code which reads:-
myControlName = [FORMS]![FORM1]![txt_myControlName]
Text field txt_myControlName stores the name value of another text box on that form (this value can be one of nine text boxes).
Now, from elsewhere, I have this code where I want to reference the value in that textbox:-
[FORMS]![FORM1]![myControlName] = myList.
I've tried this [FORMS]![FORM1]!['" & myControlName & "'] and other variations, but it fails each time.
Help appreciated and thanks in advance.