I used conditional formatting in my continuous form which really works great. So if the field says red, I can paint it red. I initially started writing code to achieve this but does not look like it works well in a continuous form. Anyway, I have a little issue. In terms of field that is subject to formatting, I would additionally like to make it white foregroud and background based on the contents of another field. So for example, if my formatted field says 'red' I would like to change to white font and white background if another field has word "control' in it. I tried the following but it does not quite work on the on current even. Can the code over ride conditional formatting?
Private Sub Form_Current()
If (Me.DesignStatus) = " Control Plan" Then
Me.Stat.ForeColor = vbWhite
Me.Stat.BackColor = vbWhite
Else
Me.Stat.ForeColor = vbBlack
Me.Stat.BackColor = vbWhite
End If
End Sub
Could someone help achieve this?
Private Sub Form_Current()
If (Me.DesignStatus) = " Control Plan" Then
Me.Stat.ForeColor = vbWhite
Me.Stat.BackColor = vbWhite
Else
Me.Stat.ForeColor = vbBlack
Me.Stat.BackColor = vbWhite
End If
End Sub
Could someone help achieve this?