I am trying to loop through controls on a form to set labels to invisible where the Tag of the label is set to "
But the code does not pic up the labels:
what am i doing wrong?
also how do i tell it to just loop through the labels?
But the code does not pic up the labels:
what am i doing wrong?
also how do i tell it to just loop through the labels?
Code:
Dim cCont As Control
For Each cCont In Me.Controls
If cCont.Tag = "OrderPic" Then
cCont.Visible = False
End If
Next cCont