How can the below control names be changed in a loop?
I have one unbound form that will display 90 controls with 30 groups of controls having 3 controls (1 command, 1 text and 1 image) in each group. The only code difference between the 30 groups is a sequential number at the end of each control name. The table supplying the records is accessed using recordset.
cmdText1.Visible = True
txtRec1.Visible = True
txtRec1.SetFocus
txtRec1.Text = rs!AdminPK
picThumb1.Visible = True
picThumb1.Picture = rs![ObjectPhotoLink]
picThumb1.HyperlinkAddress = rs![ObjectPhotoLink]