How do I get the following code to run when I lose focus on the active record? This is on a continuous form. If the user tries to click off the form or click to another record on the form, I want this to happen:
If Me.AGENCY > 0 And Me.ASSIGNEDTO = "" Then
MsgBox "Please assign an employee to this record."
End If
Also, let's say I wanted to change the color of the field to RED to show them which field needed to be completed. How do I have that color change only apply to that record? Usually when I have it change a field color, it changes it on ALL of that field for each record.
Thanks!
If Me.AGENCY > 0 And Me.ASSIGNEDTO = "" Then
MsgBox "Please assign an employee to this record."
End If
Also, let's say I wanted to change the color of the field to RED to show them which field needed to be completed. How do I have that color change only apply to that record? Usually when I have it change a field color, it changes it on ALL of that field for each record.
Thanks!