J
Jen
I am trying to change the background color of the form or the detail section
when a value of DoNotCall = yes. I have tried several things and none are
working. The field is a Yes/No field and the name is DoNotCall. When a
record has this field set to true (is checked) then the background color
should turn to red. Here is what I tried and I can't get it to work.
Private Sub Form_Current()
If Me.DoNotCall = "Yes" Then
Me.Form.BackColor = 255
End If
End Sub
Private Sub Form_Load()
If Me.DoNotCall = "Yes" Then
Me.Detail.BackColor = vbRed
End If
End Sub
Any help would be appreciated!
when a value of DoNotCall = yes. I have tried several things and none are
working. The field is a Yes/No field and the name is DoNotCall. When a
record has this field set to true (is checked) then the background color
should turn to red. Here is what I tried and I can't get it to work.
Private Sub Form_Current()
If Me.DoNotCall = "Yes" Then
Me.Form.BackColor = 255
End If
End Sub
Private Sub Form_Load()
If Me.DoNotCall = "Yes" Then
Me.Detail.BackColor = vbRed
End If
End Sub
Any help would be appreciated!