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!

displaying different font colour on the report when 1

Status
Not open for further replies.

hengsin

Technical User
Mar 26, 2003
128
MY
How can i display the different colour on the report when user open the report. For example:
When the ActionStatus is Open, i want to the whole line to become Red
When the ActionStatus is In Progress, i want the whole line to become Yellow
When the ActionStatus is Closed, i want the whole line to become Green.

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

Dim varColor as Long
Select Case ActionStatus
Case "Open"
varColor = 255
Case "In progress"
varColor = 32768
Case "Closed"
varColor = 8454143
Case Else
varColor = 0
End Select
Me.Section(0).BackColor = varColor

End Sub

Good luck


[pipe]
Daniel Vlas
Systems Consultant

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top