Lost Focus Generally implies a control/window etc has had focus, the LostFocus event can then be used to test for conditions etc.
Hope that helps.Code:Procedure TxtName.LostFocus() if len(trim(txtname)) = 0 then MsgBox "Name is a required Entry" TxtName.SetFocus End If




Reply With Quote