MajP,
the function does not logout the person if you don't replace it with another login person. When logout it returns to the login form though which is what i want. No errors.
Your last database example is working. I just copied all your code but mine is not working. I added a new button though for checkbox report. Attached is my database.