I have a textBox contol in the detail section of a report that displays a comment associated with the current record. The textBox is named [tComment]. I would like to be able to use an If…Then or Case statement to review the contents of [tComment]. If [tComment] has text then I want to make set a Label Control to visible (Me.lblSplat.Visible=True). However, if [tComment] is empty or null I want to leave the Label Control set to visible=False.
When I use the following code, the Label Control is always set to True:
Select Case Me.tComment.Text Case Is = " " Me.lblSplat.Visible = False Case Is = Null Me.lblSplat.Visible = False Case Else Me.lblSplat.Visible = True End Select
Any suggestions on how to get only the [tComment] fields that truly have a comment to turn the label on?