>do header && some setting here >do form login to lLogin && set oApp.securitylevel inside the form >if lLogin=.f. && unsuccessful login > do footer > return >endif >do mainform && use oApp.securitylevel inside the form to disable/enable buttons etc. >read events >do footer && some cleaning ehre >return > >define class oApp > securitylevel=0 >enddefine >Thanks, I know it will take me awhile to work through it but I think it will help. I just need to figure how much of what I've done to remove and where it's all located!--lincoln