Hello,
i would like to know if there is a way to shade alternate line in a report section other than the detail section.
I have the following code that will do just that , but only in the 'Details' section. My report has several groups which I would like to shade on of them.
This is the code I have but doesm't work for sections:
i would like to know if there is a way to shade alternate line in a report section other than the detail section.
I have the following code that will do just that , but only in the 'Details' section. My report has several groups which I would like to shade on of them.
This is the code I have but doesm't work for sections:
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Const vbLightGrey = 14540253
If Me.CurrentRecord Mod 2 = 0 Then
Me.Section(acDetail).BackColor = vbLightGrey
Else
Me.Section(acDetail).BackColor = vbWhite
End If
End Sub