I set such a code, but it is distributed to each front db. Using the form OnTimer event procedure, the code checks the current active control to see if it has changed. If the active control has not changed in a period of time specified in the 'frmShutDown' OnOpen event procedure, then this application will shut down.