S
Song Su
I use following code in all of my reports. For some reports, first record
shows as green. For other reports, first record shows as white.
unpredictable.
If I want all of my reports' first record to be green, how to do it?
thanks.
Private m_RowCount As Long
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 = 16777215 'white color
Else
Me.Detail.BackColor = 13303754 'green color
End If
End Sub
shows as green. For other reports, first record shows as white.
unpredictable.
If I want all of my reports' first record to be green, how to do it?
thanks.
Private m_RowCount As Long
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 = 16777215 'white color
Else
Me.Detail.BackColor = 13303754 'green color
End If
End Sub