On Jul 15, 10:38*am, Marshall Barton <marshbar...@wowway.com> wrote:
> John wrote:
> >I'm creating a report in Access 2007, and I'd like to have alternating
> >colours. The challenge is that the actual option for alternating
> >colours seems to only apply to the detail records, but I want each
> >group to have alternating colours, and the groups can have a varying
> >number of detail records. I have managed this before in Access 2003,
> >but for some reason it's not working in 2007. My logic is pretty
> >simple:
>
> >1) I have a counter variable that counts the number of groups - it
> >gets initialized to 0 when the report opens.
> [snip}
> > . . . *and then increments the counter by 1.
> [snip]
> > . . . *for some reason, Access is formatting the report twice.)
>
> [snip]
>
> Because a report may be formatted as many times and in
> whatever order as needed to deal with your property settings
> (e.g. KeepTogether, Can Grow/Shrink, Pages, etc) and
> previewing order, using code to count/number the
> records/sections might work in a few special cases, but in
> general is extremely unreliable.
>
> Instead you should use a running sum text box in the detail
> section to number the details and a separate running sum
> text box in a group header to number the instances of a
> group.
>
> --
> Marsh
> MVP [MS Access]
I just tried using the running sum box instead, but I was still
getting the same problem. I did manage to figure it out though -
basically, the problem was that I'm apparently a bit of a moron

There's a BackColor property and an Alternate Back Color property - I
had the alternate one set to #FFFFFF instead of "no color". As soon as
I changed that, it worked perfectly (I left the running sum box in). I
knew it had to be something simple that I was missing. Thanks for the
help.