I have an Access 2010 Report Everything works perfectly. The user has requested that I color code the report to make it easier to read.
I have 2 Group Headers and 2 Group Footers The Detail section is suppressed.
the first group is based on the PCP
The second group is based on the member.
The HCC is the member group footer. A Member may have 0 to many HCC's and I'm accumulating those in the detail section so they display on 1 line.
So the report looks loosely like this
Dr. Smith
Jim Jones
HCC
Bill Smith
HCC 19, 20, 21
John Doe
HCC
Dr Smith 3 members
So the 2 lines for Jim Jones should have not be grayed
the 2 lines for Bill Smith should be grayed
the 2 lines for John Doe should not be grayed.
In the on format event of the member group header I have the following;
If blnshadow Then
Me.MBRHDRFNAME.BackColor = RGB(255, 255, 255)
Else
Me.MBRHDRFNAME.BackColor = RGB(220, 220, 220)
End If
In the on format event of the member group footer I have the following:
Me.MBRFTRFNAME.BackColor = Me.MBRHDRFNAME.BackColor
blnshadow = Not blnshadow
this is not giving me the results I want.
In the group Header the back Properties are as follows:
back color = background 1
Alternate back Color = Bacground 1,Darker 5%
the group footer shows the same values for those properties but the back grounds don't come up right that way either.
Any help is appreciated.