I have a form which provides users the feature to select names on the employee list box (linked to the employees table) on the left and move them to the manager list box (linked to the managers table) on the right. Status of some employees are active and some inactive. I want to be able to highlight people with an inactive status, say in red on both list boxes.
The list boxes contain row source with 4 columns (EmpID, LastName, FirstName & Status) from their respective source tables.
I tried the following codes but they don't work:
Private Sub lstAllEmps_Enter()
If Me.lstAllEmps.Column(3) = "Inactive" Then
Me.lstAllEmps.ForeColor = 255
End If
End Sub
The database is attached. Can anyone help me with this?
The list boxes contain row source with 4 columns (EmpID, LastName, FirstName & Status) from their respective source tables.
I tried the following codes but they don't work:
Private Sub lstAllEmps_Enter()
If Me.lstAllEmps.Column(3) = "Inactive" Then
Me.lstAllEmps.ForeColor = 255
End If
End Sub
The database is attached. Can anyone help me with this?