In a report I use...
Option Compare Database
Option Explicit
Dim bluebar As Boolean
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If bluebar Then
Detail.BackColor = 16777215
Else
Detail.BackColor = 15986411
End If
bluebar = Not (bluebar)
End Sub
Never bothered in a form...

Signature
Gina Whipp
"I feel I have been denied critical, need to know, information!" - Tremors
II
I am a little new to this. I have my report open with the REPORT properties
showing. Where do I find Option Compare Database? I'm sorry I need explicit
directions. Thanks.
> In a report I use...
>
[quoted text clipped - 24 lines]
> >
> > It is also demonstrated in the Access 2000 Reports sample database.
Michael Gramelspacher - 29 Jul 2007 19:57 GMT
> I am a little new to this. I have my report open with the REPORT properties
> showing. Where do I find Option Compare Database? I'm sorry I need explicit
[quoted text clipped - 28 lines]
> > >
> > > It is also demonstrated in the Access 2000 Reports sample database.
'This is the On Format event of my reports Detail section.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
On Error Resume Next
Const cYellow As Long = 15198183
Const cwhite As Long = 16777215
Const cPurple As Long = 16751052
Dim ctl As Control
Dim sec As Section
Set sec = Me.Section("Detail")
If sec.BackColor = cwhite Then
sec.BackColor = cYellow
Else
sec.BackColor = cwhite
End If
For Each ctl In sec.Controls
If ctl.BackColor = cYellow Then
ctl.BackColor = cwhite
Else
ctl.BackColor = cYellow
End If
Next
End Sub
tjsmags - 29 Jul 2007 20:10 GMT
Are you telling me to look at an article? If so, I cannot find the link...
> > I am a little new to this. I have my report open with the REPORT properties
> > showing. Where do I find Option Compare Database? I'm sorry I need explicit
[quoted text clipped - 58 lines]
>
> End Sub
Gina Whipp - 29 Jul 2007 20:57 GMT
Open your report in design mode by highlighting your report (while closed)
in the design window and presing the 'Code' button on the toolbar. Then
copy and paste the entire section I typed, makre you don't get any foreign
characters. Save and close

Signature
Gina Whipp
"I feel I have been denied critical, need to know, information!" - Tremors
II
>I am a little new to this. I have my report open with the REPORT
>properties
[quoted text clipped - 31 lines]
>> >
>> > It is also demonstrated in the Access 2000 Reports sample database.
tjsmags - 29 Jul 2007 22:46 GMT
Great. It works. Is there a way to adjust the HEIGHT of the shaded area?
> Open your report in design mode by highlighting your report (while closed)
> in the design window and presing the 'Code' button on the toolbar. Then
[quoted text clipped - 36 lines]
> >> >
> >> > It is also demonstrated in the Access 2000 Reports sample database.
Gina Whipp - 29 Jul 2007 23:31 GMT
The height of the shaded area is based on the height of the detail section.
If you want it to shrink and grow according to how much text is there.
Report in design view, click on the Details section.... In the Properties
section of the Detail section set the Can Grow = Yes and Can Shrink = Yes

Signature
Gina Whipp
"I feel I have been denied critical, need to know, information!" - Tremors
II
> Great. It works. Is there a way to adjust the HEIGHT of the shaded area?
>
[quoted text clipped - 41 lines]
>> >> >
>> >> > It is also demonstrated in the Access 2000 Reports sample database.