F
FA
I have a problem, with the textbox color change in the report. I have
the following code where
FINDG_RSK_LVL is a textbox in the report. I want the color of this
textbox to be change according to the value. On report may have many
FINDG_RSK_LVL values and its values can be High, Medium, Low. I want
the color of this textbox to be changed according to the value.
The report look like this for example
System Name Finding Risk Level Count of Rsk_Lvl
Application Foo
High (2)
Medium (1)
Low (2)
Its not working i tried it in OnActivate EventProcedure as well and it
didnt work.
Private Sub Report_Open(Cancel As Integer)
If Me.FINDG_RSK_LVL.Value = "High" Then
Me.FINDG_RSK_LVL.BackColor = 255
End If
End Sub
If FINDG_RSK_LVL.Value = "Medium" Then
Me.FINDG_RSK_LVL.BackColor = 33023
End If
If FINDG_RSK_LVL.Value = "Low" Then
Me.FINDG_RSK_LVL.BackColor = 65535
End If
the following code where
FINDG_RSK_LVL is a textbox in the report. I want the color of this
textbox to be change according to the value. On report may have many
FINDG_RSK_LVL values and its values can be High, Medium, Low. I want
the color of this textbox to be changed according to the value.
The report look like this for example
System Name Finding Risk Level Count of Rsk_Lvl
Application Foo
High (2)
Medium (1)
Low (2)
Its not working i tried it in OnActivate EventProcedure as well and it
didnt work.
Private Sub Report_Open(Cancel As Integer)
If Me.FINDG_RSK_LVL.Value = "High" Then
Me.FINDG_RSK_LVL.BackColor = 255
End If
End Sub
If FINDG_RSK_LVL.Value = "Medium" Then
Me.FINDG_RSK_LVL.BackColor = 33023
End If
If FINDG_RSK_LVL.Value = "Low" Then
Me.FINDG_RSK_LVL.BackColor = 65535
End If