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

Color coding report to excel

Status
Not open for further replies.

Gaupo

IS-IT--Management
Feb 19, 2004
13
US
I have a Db in access which I build reports in excel all works well. I have recently come up with the need to color code records based on priority (e.g 1,2, or 3). I am having trouble building the code color code the excel sheet as it builds.

I have been able to allow for color coding using the access report format: Using

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)

If Me.Color = 3 Then
Me.Detail.BackColor = 255
Else
If Me.Color = 2 Then
Me.ForeColor = 16777215
Me.Detail.BackColor = 16711680
Else
If Me.Color = 1 Then
Me.Detail.BackColor = 8454143
Else
Me.Detail.BackColor = 16777215
End If
End If
End If
End Sub

How can I accomplish the same effect crossing from access to excel reports

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top