I have a report enumerating the invoices per customer.In the Format event
of the report i have put the condition that if the control called invoicenumber
is 0, then the control CompanyName must be red.I receive no error message
but the control CompanyName is not made red.
What is the error in my command ?
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me![invoicenumber] = 0 Then
Me![CompanyName].ForeColor = 255
End If
End Sub