I've searched the forums and found what SHOULD be the answer to my problem, but it's not working for me.
I have a continuous form that lists information about individual insurance policies. One of the fields is called CancellationDate, and I want to check to see if there is a value in that field, and if so, change the color of the field, so I can easily see if the policy has been canceled. I've actually been trying to do it in reverse with the IsNull function. Here's what I've tried:
But doing that doesn't do anything. The field just stays white, no matter if there's a value in it or not. Am I using the wrong Event? Or is there something wrong with the code? Or is there a better way to do it than to use the IsNull function?
Thanks.
I have a continuous form that lists information about individual insurance policies. One of the fields is called CancellationDate, and I want to check to see if there is a value in that field, and if so, change the color of the field, so I can easily see if the policy has been canceled. I've actually been trying to do it in reverse with the IsNull function. Here's what I've tried:
Code:
Private Sub Detail_Format()
If IsNull(CancellationDate) Then
CancellationDate.BackColor = 255
End If
End Sub
But doing that doesn't do anything. The field just stays white, no matter if there's a value in it or not. Am I using the wrong Event? Or is there something wrong with the code? Or is there a better way to do it than to use the IsNull function?
Thanks.