Create a table to hold the log in /out info
Tab_Accessed
User_Name as text
Date_Logged_In as date
Date_Logged_Out as date
When your start up form opens use an update query to write the username and time to the table
On your close button (on click event)
write an update query to update the time logged Out where username = Currentuser and date_logged_out is null