Hello all,
I searched through the different posts for a way to alternate the background color between records on a report. The code I used was this:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Const cLightGrey = 12632256
Const cWhite = 16777215
If Me.Detail.BackColor = cWhite Then
Me.Detail.BackColor = cLightGrey
Else
Me.Detail.BackColor = cWhite
End If
end sub
It works great, but after looking at my report, I need it to alternate a different way. The database is a task list and the report shows each task a person is working on. Each person can be working on more than one task. I'd like the report to alternate the background color while grouped by the person's name.
Thanks for any help you can send my way.
Milt
I searched through the different posts for a way to alternate the background color between records on a report. The code I used was this:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Const cLightGrey = 12632256
Const cWhite = 16777215
If Me.Detail.BackColor = cWhite Then
Me.Detail.BackColor = cLightGrey
Else
Me.Detail.BackColor = cWhite
End If
end sub
It works great, but after looking at my report, I need it to alternate a different way. The database is a task list and the report shows each task a person is working on. Each person can be working on more than one task. I'd like the report to alternate the background color while grouped by the person's name.
Thanks for any help you can send my way.
Milt