I am using the following code to set a label to invisible if the textbox is empty. It works great for each textbox / label on the report, but the problem is that I have to set it for each one.
If Me.Textbox = “ “ or IsNull (Me.Textbox) Then
Me.Label.Visible = False
Else
Me.Label.Visible = True
End If
Is there an expression / code that would loop through the fields and set all labels to invisible if the textbox is empty?
If Me.Textbox = “ “ or IsNull (Me.Textbox) Then
Me.Label.Visible = False
Else
Me.Label.Visible = True
End If
Is there an expression / code that would loop through the fields and set all labels to invisible if the textbox is empty?