Link to home
Start Free TrialLog in
Avatar of Sandra Smith
Sandra SmithFlag for United States of America

asked on

Change borders to thick, red

I have condition formatting that, dependong on two variables, does change the text within the text control to bold, red.  The user now also wants the BORDERS to be thick, red.  Since the conditional formallting is used - what event would be used to set the borders to these new properties?
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sandra Smith

ASKER

Am trying that, but not working
Private Sub GroupHeader2_Format(Cancel As Integer, FormatCount As Integer)
'If Due date is with 7 or less days, make the box and data red

    If [TaskDueDate] < Date + 7 And (IsNull([TaskCompletionDate]) Or [TaskCompletionDate] = "") Then
         Me.lblTaskDueDate.BorderColor = RGB(239, 5, 29)
         Me.lblTaskDueDate.BorderWidth = 2
         Me.TaskDueDate.ForeColor = RGB(239, 5, 29)
         Me.TaskDueDate.BorderWidth = 2
    End If


End Sub

Open in new window

Cap, that was it!  I only needed to add the border style and set it to normal, then it worked.  Thank  you.

Sandra
can you upload a copy of the db
This is a financial institution and all data/applications are proprietary, otherwise I would have no problem.
nevermind, you already made it work..