AD said:
I would like to have my records in the detail of my report be alternate colors. One line black the next line red for easy reading. Can I do that? If so, how? I am using Access 2002.
Red? Red is not easy to read.
You can get that effect with:
If Me.textbox1.ForeColor <> vbRedThen
Me.textbox1.ForeColor = vbRed
Me.textbox2.ForeColor = vbRed
. . .
Else
Me.textbox1.ForeColor = vbBlack
Me.textbox2.ForeColor = vbBlack
. . .
End If
It's more common to change the background color to a light
gray and leave the forground color black. Set all of the
label and text box control's BackStyle to Transparent, then
set the detail section's BackColor:
If Me.Section(0).BackColor <> vbWhite Then
Me.Section(0).BackColor = vbWhite
Else
Me.Section(0).BackColor = RGB(228,228,228)
End If