D
Duane
I have a report where I have several controls in the Supervisor Group
Footer. I have a check box in the detail section of the report. The report
is named Daily, the check box is named CleanStreets. I would like the
controls in the footer section of the report to be visible ONLY when the
check box is ticked.
I might be going about this totally wrong, but I have tried to reference the
check box from the OnFormat portion of the Supervisor Group Footer. This is
what one of the things I have tried:
Private Sub GroupFooter0_Format(Cancel As Integer, FormatCount As Integer)
If Reports!Daily.[CleanStreets] = -1 Then
[Label98].Visible = True
[Label100].Visible = True
[Label101].Visible = True
[Label102].Visible = True
[Label103].Visible = True
[Label149].Visible = True
[AreaCleaned].Visible = True
[RoadsCleand].Visible = True
[TotalHours].Visible = True
[TotalTrashBags].Visible = True
[MilesCleaned].Visible = True
[TotalPrisoners].Visible = True
Else
[Label98].Visible = False
[Label100].Visible = False
[Label101].Visible = False
[Label102].Visible = False
[Label103].Visible = False
[Label149].Visible = False
[AreaCleaned].Visible = False
[RoadsCleaned].Visible = False
[TotalHours].Visible = False
[TotalTrashBags].Visible = False
[MilesCleaned].Visible = False
[TotalPrisoners].Visible = False
End If
End Sub
I have done different variations, however, none have worked. Can anyone
give me a hand? Thanks
Footer. I have a check box in the detail section of the report. The report
is named Daily, the check box is named CleanStreets. I would like the
controls in the footer section of the report to be visible ONLY when the
check box is ticked.
I might be going about this totally wrong, but I have tried to reference the
check box from the OnFormat portion of the Supervisor Group Footer. This is
what one of the things I have tried:
Private Sub GroupFooter0_Format(Cancel As Integer, FormatCount As Integer)
If Reports!Daily.[CleanStreets] = -1 Then
[Label98].Visible = True
[Label100].Visible = True
[Label101].Visible = True
[Label102].Visible = True
[Label103].Visible = True
[Label149].Visible = True
[AreaCleaned].Visible = True
[RoadsCleand].Visible = True
[TotalHours].Visible = True
[TotalTrashBags].Visible = True
[MilesCleaned].Visible = True
[TotalPrisoners].Visible = True
Else
[Label98].Visible = False
[Label100].Visible = False
[Label101].Visible = False
[Label102].Visible = False
[Label103].Visible = False
[Label149].Visible = False
[AreaCleaned].Visible = False
[RoadsCleaned].Visible = False
[TotalHours].Visible = False
[TotalTrashBags].Visible = False
[MilesCleaned].Visible = False
[TotalPrisoners].Visible = False
End If
End Sub
I have done different variations, however, none have worked. Can anyone
give me a hand? Thanks