IF TYPE( '_Screen.ActiveForm.ActiveControl.Name' ) = 'C' *** We have an active control on the form *** do something ENDIF