I have the following piece of code.
Dim offPlayer as Integer
TextBox39.Text = "txtHome" & offPlayer & ".text"
In my example, offPlayer is 8. I would like textBox39.Text = txtHome8.text. It currently puts in the string "txtHome8.text" and not the value.
Please help.
Thanks,
Doug

Need value of a textbox
Blast
Han Qiao
Thank you for the suggestion, however, it is giving me an error NullReferenceException was handled "Object reference not set to an instance of an object"
TextBox54.Text =
Me.Controls("txtHome" + offPlaer).TextThe message points to "txtHome"
Paarul
TextBox39.Text = Me.Controls("txtHome" & offPlayer).Text