D
Dustin via AccessMonster.com
I have a few Procedures for storing LogIn/LogOff Information in my database.
When a user logs in, the event is written to an EVENT table. Also, upon
logging in I write that users employee number to a CURRENTLY_LOGGED_IN table
so that I can query active users at any time (going to be used for in-program
instant messaging). My problem is when it comes to users closing the
database. I have a hidden form running in my database which holds timer
events an such, so I have code that when that form closes it should clear out
the current user from the CURRENTLY_LOGGED_IN table also write a LogOff time
stamp to the EVENT table. What happens is that I get a time stamp in the
EVENT table but the Employee_ID field is always 0. I am using a global
variable to hold the current user but the ID never gets written to the table.
Also, the record matching the Employee in the CURRENTLY_LOGGED_IN is not
deleting.
I cann't set a stop on the form close to debug anything, it all seems to fire
quick and dump all the information in the variables. Can anyone give me any
suggestions on what's happening?
Thanks!!!
When a user logs in, the event is written to an EVENT table. Also, upon
logging in I write that users employee number to a CURRENTLY_LOGGED_IN table
so that I can query active users at any time (going to be used for in-program
instant messaging). My problem is when it comes to users closing the
database. I have a hidden form running in my database which holds timer
events an such, so I have code that when that form closes it should clear out
the current user from the CURRENTLY_LOGGED_IN table also write a LogOff time
stamp to the EVENT table. What happens is that I get a time stamp in the
EVENT table but the Employee_ID field is always 0. I am using a global
variable to hold the current user but the ID never gets written to the table.
Also, the record matching the Employee in the CURRENTLY_LOGGED_IN is not
deleting.
I cann't set a stop on the form close to debug anything, it all seems to fire
quick and dump all the information in the variables. Can anyone give me any
suggestions on what's happening?
Thanks!!!