I use this method, there may be many other ways of doing this.
This code is the very basic function (set up for Detail Section graybar),
but with tweaking... this method is very flexible, allowing for graybar
width adjustment, gray every 3rd record, or 4th record, graybar color...
etc. (Use your own names)
It's from my old Access 2.0 "bible" Access 2.0 How To CD by Ken Getz. A
real classic!
Option Compare Database
Option Explicit
Dim fshade As Integer
Private Sub Detail1_Print(Cancel As Integer, PrintCount As Integer)
Const ColorShade = &HECECEC
Const Invisible = 5
If fshade Then
Me.DrawStyle = Invisible
Me.Line (0, 0)-(Me.Width, Me.Section(0).Height), ColorShade, BF
End If
fshade = Not fshade
End Sub
Private Sub PageHeader0_Format(Cancel As Integer, FormatCount As Integer)
fshade = False
End Sub
Also, I found
http://archive.baarns.com/access/faq/ad_reprt.asp#4
hth
Al Camp