NauticalGent
Ignore List Poster Boy
- Local time
- Today, 03:29
- Joined
- Apr 27, 2015
- Messages
- 6,524
Morning folks, what I am trying to do should be simple: I want ALL the records in the detail section to be the same color as the Group they are in.
I found this code and I thought I was home-free:
But when I run the report, there is absolutely no change whatsoever. I even removed the conditional check and simply tried to set the Group backcolor with VBA:
But when I ran the report, again, there was no change.
Somebody help me before I break something...
I found this code and I thought I was home-free:
Code:
Option Compare Database
Option Explicit
Dim blnalternate As Boolean
Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)
If blnalternate Then
Detail.BackColor = 15263976
GroupHeader0.BackColor = 15263976
Else
Detail.BackColor = 14811135
GroupHeader0.BackColor = 14811135
End If
blnalternate = Not (blnalternate)
End Sub
But when I run the report, there is absolutely no change whatsoever. I even removed the conditional check and simply tried to set the Group backcolor with VBA:
GroupHeader0.BackColor = 15263976
But when I ran the report, again, there was no change.
Somebody help me before I break something...