I have a Label on a report with a check box from a table indicating True or False. I would like to have the labels that are true to highlight yellow using conditional foramtting. The False labels to remain unhighlighted. I have tried changing the label to a text box and then conditional formatting "Expresion Is" "BILL"=TRUE . But the formatting is not working. I loose my Label text and BackColor does not change. Any Suggestions?
Conditional Formatting of a label on a report
Collapse
X
-
I have a Label on a report with a check box from a table indicating True or False. I would like to have the labels that are true to highlight yellow using conditional foramtting. The False labels to remain unhighlighted. I have tried changing the label to a text box and then conditional formatting "Expresion Is" "BILL"=TRUE . But the formatting is not working. I loose my Label text and BackColor does not change. Any Suggestions?
Code:Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If Me![<Check Box Name>] Then Me![<Label Name>].ForeColor = vbYellow Else Me![<Label Name>].ForeColor = vbBlack End If End Sub
Comment
Comment