Hello everyone. I have a table, "ShortTermObsolescence" setup with a column labeled "Status". It can only have values of "Red", "Yellow", or "Green". I have a report "Project" and when I run it I dont want the Status to show up as characters "Red", "Yellow", or "Green" I want to to show up as an image that is a circle that shows the corresponding color. This is the VB that I have setup within "Project" using build an Event.
How do I set it up so that works? Am I on the right track? I appreciate any help anyone can give me. I havent seen this type of problem on the internet its been difficult for me to research.
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Table!ShortTermObsolescence!Status = "Red" Then
Me.Status_Image.Picture = "C:\redcircle.JPG"
ElseIf Table!ShortTermObsolescence!Status = "Yellow" Then
Me.Status_Image.Picture = "C:\yellowcircle.JPG"
ElseIf Table!ShortTermObsolescence!Status = "Green" Then
Me.Status_Image.Picture = "C:\greencircle.JPG"
End If
End Sub
How do I set it up so that works? Am I on the right track? I appreciate any help anyone can give me. I havent seen this type of problem on the internet its been difficult for me to research.