Sure. Check out _Screen.Forms() collection and _Screen.FormCount property. If they have a form open you care about, you can abort the kick-out process. If FormCount is greater than 0, then you can get a reference to each form object using the Forms() collection:
FOR EACH loForm in _Screen.Forms
... check anything about the loForm object here
ENDFOR
>I only want to kick them out if they are at the MainMenu. Not, if they have a screen or report open. Is there any way to tell if they do have a screen or report open without modifying every screen and report?
>
>Thanks.
Mark McCasland
Midlothian, TX USA