I use "AutoExec" to record users in a history table as they start using my db(s) but would like to know how I can automatically record users as they exit. Is there an "AutoExit" type of macro that I can use to run a job when a user leaves a db? I use Environ, db.Name, Date and Time to record who, where, when and what a user is using but cannot record when they stop. Thanks for your help.