Hello. I am currently utilizing Microsoft Access 2007. The report I am attempting to create has certain sections that would lack information. Each of these individual sections exist in differing Groupings on the report. My problem is arising in the fact that I am unable to figure out how to suppress only the sections the lack information. I have attempted to add coding to the On_Format sections of GroupHeader2 and GroupHeader3. I have been unable to obtain the desired results. My current coding looks like:
Any suggestions on multiple conditional formatting to differing group headers is greatly appreciated. Thank you in advance.
Code:
Option Compare Database
Private Sub GroupHeader2_Format(Cancel As Integer, FormatCount As Integer)
Select Case Me!Number_Gallons_Fertilizer
Case Is > 0
' don't cancel these groups so do nothing
Case Else
Cancel = True 'don't display other groups
End Select
End Sub
Private Sub GroupHeader3_Format(Cancel As Integer, FormatCount As Integer)
Select Case Me!Chemical_Name
Case Is = Null
' don't cancel these groups so do nothing
Case Else
Cancel = True 'don't display other groups
End Select
End Sub
Any suggestions on multiple conditional formatting to differing group headers is greatly appreciated. Thank you in advance.