Business Case: IIf([Main Data.Expedite]=-1,"No Business Case!",IIf([Status]="Business Case Rejected",[Status],"Business Case Proposal")
If the result is "Business Case Rejected" I would like the text bold and the ForeColor red.
Assuming the name of your field you want to change the color is Status
This code is the same as mentioned by "pdldavis" except I using an IF statement and Your variables
Enter this code in you form module
Private Sub Status_LostFocus()
If Me.Status = "Business Case Rejected" Then
Me.Status.ForeColor = 255 ' Red
Me.Status.FontBold = True ' Bold Text
Else
Me.Status.ForeColor = 0 'Black
Me.Status.FontBold = False ' Normal Text
End If
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.