The only thing I can think of is if you can control which form control has the focus at that point, you could use its Exit event. For that matter, perhaps all or any controls in the record as you see fit. The advantage would be that the exit event can be cancelled, thus keeping user in that control if that's how you code it. That seems to satisfy this if it's another goal
find a way that a user can't click off the current record
Red part is like your "other code"
Private Sub Entry_Exit(Cancel As Integer)
If Me.Dirty = False Then MsgBox "not dirty"
End Sub
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.