R Roger Carlson Mar 29, 2004 #2 On my website (see sig below) is a small sample database called "Greenbar.mdb", which illustrates how to do this.
On my website (see sig below) is a small sample database called "Greenbar.mdb", which illustrates how to do this.
C Cheryl Fischer Mar 29, 2004 #3 Below is a link to a solution provided back in July by MVP John Spencer: http://tinyurl.com/2q5am hth,
Below is a link to a solution provided back in July by MVP John Spencer: http://tinyurl.com/2q5am hth,
F fredg Mar 29, 2004 #5 How do I make my report have alternating line colors? Any ideas? Click to expand... Make sure the BackStyle of each control is Transparent. Code the Detail Format event: If Me.Section(0).BackColor = vbWhite Then Me.Section(0).BackColor = 12632256 ' gray Else Me.Section(0).BackColor = vbWhite End If ==== If you wish each page to start with a white row, code the Page Header Format event: Me.Detail.BackColor = 12632256 'Reset color to Grey so that the first detail line will become white Change the colors as needed.
How do I make my report have alternating line colors? Any ideas? Click to expand... Make sure the BackStyle of each control is Transparent. Code the Detail Format event: If Me.Section(0).BackColor = vbWhite Then Me.Section(0).BackColor = 12632256 ' gray Else Me.Section(0).BackColor = vbWhite End If ==== If you wish each page to start with a white row, code the Page Header Format event: Me.Detail.BackColor = 12632256 'Reset color to Grey so that the first detail line will become white Change the colors as needed.
G Guest Jun 4, 2004 #6 Roger Fantastic code. Very simple and easy to follow - I actually understood it. Thank you for providing the sample Dere ----- Roger Carlson wrote: ---- On my website (see sig below) is a small sample database calle "Greenbar.mdb", which illustrates how to do this
Roger Fantastic code. Very simple and easy to follow - I actually understood it. Thank you for providing the sample Dere ----- Roger Carlson wrote: ---- On my website (see sig below) is a small sample database calle "Greenbar.mdb", which illustrates how to do this