Shading Every Other Line In A Report
Simpler problem this time than some of the others I've posted... ok, to me it's simpler.
I have used the following code successfully in the past to shade every other row of a report. However, a new report I have set up, this shades every other row on some pages, and not on some pages, and at times skips several pages all together, then resumes shading like nothing was wrong.
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If Me.Section(0).BackColor = vbWhite Then
Me.Section(0).BackColor = 12632256
Me.Section(0).BackColor = vbWhite
The report is used to subtotal and then grand total a table with customer orders. The breakout is on the customer number, and set to start a new page every time the customer number changes.
I don't know if for some reason there's actually more than section zero or not. I've never had a problem from this code in the past several years I've been using it.
Any help or suggestion will be most appreciated,