Is there a conditional formatting option available for shading alternating rows? Whether it be a Group1 or Group2 or Detail sections of a report. Anyone have any suggestions?
Mike, your first formula does exactly what the RecordNumber function does, which eliminates the need for additional formulas. You can do this with one conditional formula.
You can conditionally shade every row so they change color but I don't like doing that. Why??? because I have set up nice crisp margins only to have the shading bleed from edge to edge making my margins look like crap.
What I do instead is overlay an empty text field from margin to margin with the background color I want alternated...then I apply a formula like Naith has given for the conditional background
If Remainder(RecordNumber,2) = 0
Then crYellow //crSilver, crBlue, whatever
Else NoColor
This technique is also very useful if you want only part of a line highlighted...say when you want data flagged in a report for being unusual but not the whole line.
The original post asks for the alternating of band colors Whether it be a Group1 or Group2 or Detail sections of a report.
Using recordnumber will not change the band colors of groups. If there are three groupings, Group1 Group2 and Group3 and the first record would all be the same color.
My interpetation of the post was that Jim wanted every other band to alternate independent of the band's type.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.