Select SYSTEMUSERS * Test to see if Failsafe file exist. If not, user has deleted it in order to continue * using system after it crashed, leaving all then current user sysUsers recs * flagged as logged on, or this is the first time ever. So reset all logged on * flags in the sysUsers table and re-create the file * ________________________________________ Wait WINDOW "Log on please" NOWAIT NOCLEAR lcCurDir = SYS(5) + SYS(2003) If not FILE( lcCurDir + "\FAILSAFE.DAT") && If no failsafe file in existance... Select sysUSERS If not EMPTY( USERID) && If at least 1 user registered... Replace LOGGEDON with .F. all && ...Reset all logged in flags = TABLEUPDATE(.T.) EndIf not EMPTY(USERID) = FCREATE( lcCurDir + "\Failsafe.Dat") && Create or re-create Failsafe dummy file EndIf not FILE("FAILSAFE.DAT") && If no failsafe file in existance...Incidentally, why not just have a logged_on (T/F) flag in each user's account, then, at start up you simply do: