Remou,
I think Chew is looking for a way to force a Windows logoff when the database closes.
It may be possible, but I don't know how...Kind of seems that it wouldn't work though, because your code would have to initiated a Windows API function of some sort while it is still open, which will cause other errors/application hangs.
You may be able to create a VBScript or something that has a delay/sleep event, and have the Access app kick this off at close...then a couple seconds later the VBScript continues...but what happens if the Access app hangs on closing or has some other issue???
=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)
Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB/Access Programmer