Hi - I'm trying to skip printing the detail section when my data is empty. I thought it would be as easy as checking the field in the detail format section as shown below. I even tried to set the height of the row and field that I want to show. The me.delay text is evaluated and it goes into the proper part of the if statement, but nothing happens on the report. Any help would be appreciated!
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.DelayText = "" Then ' empty text, don't display detail section
Me.Detail.AutoHeight = True
Me.Detail.Height = 0
Me.DelayText.Height = 0
Else
Me.Detail.AutoHeight = True
Me.Detail.Height = 0.1667
Me.DelayText.Height = 0.1667
End If
End Sub

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.DelayText = "" Then ' empty text, don't display detail section
Me.Detail.AutoHeight = True
Me.Detail.Height = 0
Me.DelayText.Height = 0
Else
Me.Detail.AutoHeight = True
Me.Detail.Height = 0.1667
Me.DelayText.Height = 0.1667
End If
End Sub