Have you tried (substitute names for yours) something like
this?...
If Me!subformControlName.Form.Dirty = True Then
Whatever
End If
However, I can't picture how you could leave the subform and
perform an action that would trigger an event on the main
form without forcing the subform record to update as you
leave unless it would be the Main form's GotFocus event.