I have a report that contains text boxes with dates in them, not all fields have dates. I want the fields that don't have anything in them to be hidden. Below is the code that I have tried but it is not working completely.
Code:
Private Sub Report_Load()
If IsNull(Me.Alabama) Then
Me.Alabama.Visible = False
Else
Me.Alabama.Visible = True
End If
End Sub
This successfully hides the textbox when there is nothing in it but when there is a date in there, it still hides it (when it should be visible).
Any ideas?
Thanks.