I have three groupings each with a header and two footers. The footers and headers contain text boxes that will never be null. For example, the footers contain sumations. The problem is that I want the headers and footers to not print and shrink to zero for two of the three groupings. I've been able to get them to not print and to shrink. However this results in the headers and footers for all three grouping to disappear. It seems I've run into an all or nothing situation. Here's the code:
Private Sub GroupFooter0_Format(Cancel As Integer, PrintCount As Integer)
If Me!
Private Sub GroupFooter0_Format(Cancel As Integer, PrintCount As Integer)
If Me!
Code:
= "N/A" Then
Me.PrintSection = False
Me.Text1.Height = 0
Me.GroupFooter0.Height = 0
End If
End Sub
I think the problem is how do I get everything to show if Me![Code] doesn't equal "N/A". I tried returning the height to normal using the else statement, but it didn't work.
Thanks in advance,
Mike