Lost Focus Generally implies a control/window etc has had focus, the LostFocus event can then be used to test for conditions etc.

Code:
Procedure TxtName.LostFocus()

   if len(trim(txtname)) = 0 then
      MsgBox "Name is a required Entry"
      TxtName.SetFocus
   End If
Hope that helps.