Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shade Alternate Rows (in Report that uses Crosstab Query

Status
Not open for further replies.

papic1972

Technical User
Apr 10, 2003
209
AU
Hi All,

Is it possible to shade alternate rows in a report that uses a CrossTab query as its record source.

I have tried:

'Michael Red. 2/13/2002. To 'Toggle the backolor, which
'Provides alternate line shading
Const XorToggle = 4144959

Me.Detail.BackColor = Me.Detail.BackColor Xor XorToggle

but each line is white. Can anyone offer any help?
Thanks in advance.
 
Where did you place the code?
I generally use code like:
Code:
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
    If Me.Section(0).BackColor = vbWhite Then
        Me.Section(0).BackColor = 12632256
     Else
        Me.Section(0).BackColor = vbWhite
    End If
End Sub

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top