Works awesome.....Now I can do different things based on which button was pressed...I changed form caption's and removed certain tabs. Thanks a bunch save me so much time and effort on not having to duplicated code that two people needed which was the same just a few slight differences...