alternating color

  • Thread starter Thread starter Candor Feg
  • Start date Start date
C

Candor Feg

How to accomplish?
Based on odd or even value in a field.
thanks
 
Candor said:
How to accomplish?
Based on odd or even value in a field.
thanks

In the format event of the section...

If Me!FieldName mod 2 = 0 Then
Me.Section(n).BackColor = vbGreen
Else
Me.Section(n).BackColor = vbWhite
End If

You will have to replace the 'n' with the appropriate index value for the
section. For the detail section it would be zero.
 
THANKS
Rick Brandt said:
In the format event of the section...

If Me!FieldName mod 2 = 0 Then
Me.Section(n).BackColor = vbGreen
Else
Me.Section(n).BackColor = vbWhite
End If

You will have to replace the 'n' with the appropriate index value for the
section. For the detail section it would be zero.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top