Below is some code that I have that is supposed to add color
to every other line in a report. This code is working in
one of my Database reports but will not work in the report
I am trying to add it to now. This report is a Sub report.
Can anyone tell me what is wrong or have any other
suggestions.
to every other line in a report. This code is working in
one of my Database reports but will not work in the report
I am trying to add it to now. This report is a Sub report.
Can anyone tell me what is wrong or have any other
suggestions.
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
m_RowCount = m_RowCount + 1
If m_RowCount / 2 = CLng(m_RowCount / 2) Then
Me.Detail.BackColor = 15263976 'Change value to the color you desire
Else
Me.Detail.BackColor = 16777215 'Change value to the color you desire
End If
End Sub