Hi all,
I want to start a LogMeOff function on any kind of exit - by clicking exit button I did but when I click on the x of the window I don’t know how to start that function.
You need to have a hidden form that is always open and then you can call your LogMeOff function when this form unloads ie on the hidden form's Form_Unload event. This event will fire when you try to close the database using the X close button (assuming you haven't manually already closed the hidden form)
David
You need to have a hidden form that is always open and then you can call your LogMeOff function when this form unloads ie on the hidden form's Form_Unload event. This event will fire when you try to close the database using the X close button (assuming you haven't manually already closed the hidden form)
David
I imported the whole thing so I can’t explain it in detail. I just know that the function logmein and out writes a user name time of login and time of logout in a specific table so I can know when and who logged in and logged out