B
Bryan
Hi, Does anyone know how to change a line of code Someone
gave me. I have a code which I need to change the
background colour to, instead of alternating each line, I
need to alternate by 2 text feilds. The ones I wanted to
change by colour are when a different Drawing No and/or
Sht No comes up.I,m just new at access and dont know how
to write code. Her is the code I have.
Option Compare Database
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 = 15263976
Else
Me.Detail.BackColor = 14811135
End If
End Sub
Thanks Bryan
gave me. I have a code which I need to change the
background colour to, instead of alternating each line, I
need to alternate by 2 text feilds. The ones I wanted to
change by colour are when a different Drawing No and/or
Sht No comes up.I,m just new at access and dont know how
to write code. Her is the code I have.
Option Compare Database
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 = 15263976
Else
Me.Detail.BackColor = 14811135
End If
End Sub
Thanks Bryan