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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shading Even Rows on Reports 2

Status
Not open for further replies.

marc0042

IS-IT--Management
Feb 3, 2005
1
US
I was wondering is there a way to shade even rows in Access on a Report.
 
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Detail.BackColor = vbWhite Then
Detail.BackColor = 13487565
Else: Detail.BackColor = vbWhite
End If
End Sub

RGB
 
as a simpler variation, consider:

Code:
MyClr = rgb(64, 64, 64)     '~~ Lt Grey
? MyClr
 4210752 
? vbBlack
 0 
Clr = vbWhite
? Clr
 16777215 
Clr = Clr Xor MyClr
? Clr
 12566463 
Clr =  clr Xor MyClr
? Clr
 16777215



MichaelRed


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top