See my code below where I build up the OptionIDStr string.
The code crashes in the "IF" statement.
E.g. Me.OptionIDStr.Visible is not valid even tho' OptionIDStr contains "Option6" which is a control.
I understand the principle of what is wrong but cannot correct it.
Any thoughts out there??
For OptionID = 1 To 20
OptionIDStr = "Option" & OptionID
If Len(OptionIDStr & "") < 1 Then Me.OptionIDStr.Visible =
False Else Me.OptionStr.Visible = True