There are a couple ways to do it, but we need to know in what kind of sections you have your data. Is everything in Details sections, everything in Group sections, are some records in Groups and some in Details? Your example confused me a bit - did you mean …
Group Header: State 1
City 1
Province 1
Details: DataRow1A
DataRow1B DataRow1C
Group Header: State 2
City 2
Province 2
Details: DataRow2A
DataRow2B DataRow2C
Sorry for the confusion. I’m newbie to Crystal Reporting. Yes the data that I need shaded is in the details section. Please let me know if you need any more information. Thanks!!!
4 - (This step is to find the color mixture you want to use - some of the stock colors are too strong - this will give you control over the exact color and color depth). Click the checkbox for Background Color; use the dropdown and select “More”; use the color palette to select the color mix and the slider bar to its right to select the color intensity; jot down the numbers for Red, Green, and Blue for use in a formula then cancel the Color screen.
5 - To the right of the color dropdown arrow, click on the X+2 conditional formatting button.
6 - Enter the following formula:
IF Remainder (RecordNumber, 2) <> 0
THEN Color (158, 254, 160)
ELSE crNoColor
7 - (The numbers in the Color function were mine for a light green). Save and close the formula editor screen, and OK out of Section Expert.
The principle of this formula can be used (with some changes) for alternating group backgrounds and even some other things, so take note of it.
Could someone please tell me what the changes are that have to be made when we’re talking about a group? Obviously RecordNumber won’t do the trick, but I’m not able to figure out what does. Or is it GroupNumber?
Instead of recordnumber you can probably use a running total that is reset on change of group. That would make the first record of every group 1 and the second 2. You can keep a more consistent look from group to group when you use a running total this way instead of a total record count.