Aug 5, 2002 #1 rplant MIS Joined Aug 20, 2002 Messages 10 Location 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 Joined Aug 6, 2001 Messages 3,006 Location 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