Link to home
Start Free TrialLog in
Avatar of SteveL13
SteveL13Flag for United States of America

asked on

How change the backcolor of just one record being displayed in a continuous form

I am trying to change the backcolor of just one record being displayed in a continuous form with:

    If Me.txtQty1Select = "X" Then
        Me.txtQty1.BackColor = vbYellow
        Else
        Me.txtQty1.BackColor = vbWhite
    End If

Open in new window


But all of the txtQty1's are changing to vbYellow.  Is there a way to overcome this issue?
ASKER CERTIFIED SOLUTION
Avatar of Daniel Pineault
Daniel Pineault

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
Try changing your first line of code to this:

If Me.txtQty1.Value = "X" Then
        Me.txtQty1.BackColor = vbYellow
        Else
        Me.txtQty1.BackColor = vbWhite
    End If

Open in new window


Paul