RichardOneil
MIS
Good Morning-
I want to be able to program a form on my database to flag blank fields by making them yellow. I have added the following code to the "On Current" event of the form properties:
It works to a point... If the field is blank, it will indeed change the color to yellow, but once the field is yellow, it doesn't change back to white when a value is present in the field. Thanks in advance for any help.
I want to be able to program a form on my database to flag blank fields by making them yellow. I have added the following code to the "On Current" event of the form properties:
Code:
Private Sub Form_Current()
With Form_frmMissing
If IsNull(Me.STEP.Value) = True Then
Me.STEP.BackColor = vbYellow
Else
Me.STEP.BackColor = vbWhite
End If
End With
End Sub
It works to a point... If the field is blank, it will indeed change the color to yellow, but once the field is yellow, it doesn't change back to white when a value is present in the field. Thanks in advance for any help.