Aug 5, 2002 #1 rplant MIS Aug 20, 2002 10 US Does anyone know how to refer to the name of a text box with a variable? Here is an example of what I need: If a text box is named txtRate and strTest = "txtrate" I want to be able to refer to the control using the string: me.[strTest].value = whatever
Does anyone know how to refer to the name of a text box with a variable? Here is an example of what I need: If a text box is named txtRate and strTest = "txtrate" I want to be able to refer to the control using the string: me.[strTest].value = whatever
Aug 5, 2002 #2 jebry Programmer Aug 6, 2001 3,006 US Hi! You can do it like this: Me.Controls(strTest).Value = whatever hth Jeff Bridgham bridgham@purdue.edu Upvote 0 Downvote
Hi! You can do it like this: Me.Controls(strTest).Value = whatever hth Jeff Bridgham bridgham@purdue.edu