Could someone help me translate a line into vb.net?
I am updating a load of labels from a recordset but need help putting it in a loop rather than doing each one individually.
I need to change the reference to lblPlayer1 to something like me(“lblPlayer” & x).text but I cannot get the coding quite right…
I am updating a load of labels from a recordset but need help putting it in a loop rather than doing each one individually.
Code:
For x = 0 To 11
Me.lblPlayer1.Text = rstMain("FirstName").Value & " " & rstMain("SecondName").Value
Next x
I need to change the reference to lblPlayer1 to something like me(“lblPlayer” & x).text but I cannot get the coding quite right…