Hello AP forums,
I want the contents and format of a textbox to change depending on field values.
The following is working with respect to the text, but not the formatting (BackColour).
(Code is in the report's Detail event)
Please could someone explain what I'm doing wrong?
Thanks
I want the contents and format of a textbox to change depending on field values.
The following is working with respect to the text, but not the formatting (BackColour).
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [MoveOnDate] < Now Then
Me.Text93 = [NowAt] & ", Ended " & [move_on_date]
Me.Text93.BackColor = vbRed
Else
Me.Text93 = [NowAt] & " Since " & [start_date_latest]
End If
End Sub
(Code is in the report's Detail event)
Please could someone explain what I'm doing wrong?
Thanks