Hello All,
I hope you can help with this question. I have seen numerous threads with very similar or the same issue, but I cannot get the solutions to work for me. In a report detail section I have a function that I want to hide a text box and the corresponding label if the text box has a null value. Here is what I have:
Function hideNullFields()
If IsNull(Me.txtDescription) Then
Me.lblDescription.Visible = False
Me.txtDescription.Visible = False
Else
Me.txtDescription.Visible = True
Me.lblDescription.Visible = True
End If
End Function
In the On Format Event of the Report Detail section I have =hideNullFields().
This function is for one of the eight label/textbox pairs I have in the detail section, but I really need this to apply to all eight pairs. Can anyone offer any suggestions? Any information would be greatly appreciated!
Thanks for your time.
I hope you can help with this question. I have seen numerous threads with very similar or the same issue, but I cannot get the solutions to work for me. In a report detail section I have a function that I want to hide a text box and the corresponding label if the text box has a null value. Here is what I have:
Function hideNullFields()
If IsNull(Me.txtDescription) Then
Me.lblDescription.Visible = False
Me.txtDescription.Visible = False
Else
Me.txtDescription.Visible = True
Me.lblDescription.Visible = True
End If
End Function
In the On Format Event of the Report Detail section I have =hideNullFields().
This function is for one of the eight label/textbox pairs I have in the detail section, but I really need this to apply to all eight pairs. Can anyone offer any suggestions? Any information would be greatly appreciated!
Thanks for your time.