I have a main form with a subform - the subform has a field (Primary Key) that I used a combo box to display a text field so data entry is by a drop down text selection. My problem is that I want the field to display a different Forecolor depending on what is entered (Red - Green - Yellow). I tried an If / else if in the Form properties of the subform in the OnCurrent event and AfterUpdate events.
IF (Me!AuthStatusID)="Pending" Then
Me!AuthStatusID.ForeColor = 127976
ElseIf (Me!AuthStatusID)="Received" Then
Me!AuthStatusID.ForeColor = 4367885
Else Me!AuthStatusID.ForeColor = 32768
EndIf
Also tried the Autonumber for the field instead of the text
Also tried the same code both ways on the actual control
Also tried the same code both ways on the form properties of the Main Form
Any ideas anyone? Any feedback would be greatly appreciated. Thanks so much, Cindy
IF (Me!AuthStatusID)="Pending" Then
Me!AuthStatusID.ForeColor = 127976
ElseIf (Me!AuthStatusID)="Received" Then
Me!AuthStatusID.ForeColor = 4367885
Else Me!AuthStatusID.ForeColor = 32768
EndIf
Also tried the Autonumber for the field instead of the text
Also tried the same code both ways on the actual control
Also tried the same code both ways on the form properties of the Main Form
Any ideas anyone? Any feedback would be greatly appreciated. Thanks so much, Cindy