crystalfun
Programmer
I have been able to Suppress the detail section of my Access Report with the following code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.SUM < 100000 Then
Reports!Copy.Section(acDetail).Visible = False
Else
Reports!Copy.Section(acDetail).Visible = True
End If
End Sub
However, I can't Suppress the Footer or Header associated with the detail. The code is below. If anyone has any ideas how I can get this to work please let me know. All of the code is run off of the Event Procedure OnFormat.
Thanks.
Private Sub GroupFooter1_Format(Cancel As Integer, FormatCount As Integer)
If Me.SUM < 100000 Then
Reports!Copy.Section(acGroupFooter1).Visible = False
Else
Reports!Copy.Section(acGroupFooter1).Visible = True
End If
End Sub
Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)
If Me.SUM < 100000 Then
Reports!Copy.Section(acGroupHeader0).Visible = False
Else
Reports!Copy.Section(acGroupHeader0).Visible = True
End If
End Sub
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.SUM < 100000 Then
Reports!Copy.Section(acDetail).Visible = False
Else
Reports!Copy.Section(acDetail).Visible = True
End If
End Sub
However, I can't Suppress the Footer or Header associated with the detail. The code is below. If anyone has any ideas how I can get this to work please let me know. All of the code is run off of the Event Procedure OnFormat.
Thanks.
Private Sub GroupFooter1_Format(Cancel As Integer, FormatCount As Integer)
If Me.SUM < 100000 Then
Reports!Copy.Section(acGroupFooter1).Visible = False
Else
Reports!Copy.Section(acGroupFooter1).Visible = True
End If
End Sub
Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)
If Me.SUM < 100000 Then
Reports!Copy.Section(acGroupHeader0).Visible = False
Else
Reports!Copy.Section(acGroupHeader0).Visible = True
End If
End Sub