DHookom
Active member
- Local time
- Today, 17:22
- Joined
- Aug 7, 2024
- Messages
- 583
I would make sure the Lvl# fields are in the report's record source and included in the GroupHeader1 as bound controls. They don't need to be visible. Then, open the report's record source in datasheet view to make sure the Lvl# fields are valued (no nulls). Then, this code in the GroupHeader1_Format event should work. If you want to display the check box, that's fine but not necessary if the Lvl# fields are all valued with True/False Yes/No -1/0.
Code:
Private Sub GroupHeader1_Format(Cancel As Integer, FormatCount As Integer)
Me.Lvl1Img.Visible = Me.Lvl1
Me.Lvl2Img.Visible = Me.Lvl2
Me.Lvl3Img.Visible = Me.Lvl3
End Sub