chrisaroundtown
Technical User
Hi,
I have a main form which has hidden fields which record the username, time logged in and time logged out to a table.
When the databsase is opened the main form launches through the start up and the username and time logged in fields are updated. If the user exits the database by using an exit button I have on the main form the Close event is activated on the form which updates the time logged out before exiting the database.
The problem is that if a user closes the database by hitting the X in the top right corner of the database, or by hitting Ctrl + Alt + Del and ending the task, the Close event on the form is not called and hence the database exits without the time logged out field being updated.
How can I have the Close event from the main form run whenever the database is exited?
Thanks
Chris
I have a main form which has hidden fields which record the username, time logged in and time logged out to a table.
When the databsase is opened the main form launches through the start up and the username and time logged in fields are updated. If the user exits the database by using an exit button I have on the main form the Close event is activated on the form which updates the time logged out before exiting the database.
The problem is that if a user closes the database by hitting the X in the top right corner of the database, or by hitting Ctrl + Alt + Del and ending the task, the Close event on the form is not called and hence the database exits without the time logged out field being updated.
How can I have the Close event from the main form run whenever the database is exited?
Thanks
Chris