Open Email Using SendObject Access Download
User Inactivity Logout VBA Code
Disable Shift Key Demo
Send Email Microsoft Access Tutorial Download (Advanced)
Programming MS Access Security Alternative
Single User Inventory Calculations Download
How To Perform Multi-User Inventory Calculations
Make Dependent Combo Box Code MS Access Tutorial
Union Query (Advanced) Access Tutorial
How To Fill Fields From Combo Box
How to Detect User Idle Time or Inactivity
User inactivity logout is great tool to have in a multi-user database environment. Sometimes you will have users located in multiple buildings, cities, or even countries. It is often critical that users logout when they are done working on the database. This visual basic code was developed for Microsoft Access but it should work, with minor modifications with any forms-based database with timer events available to the programmer.
Since 2000 we have developed nearly 500 databases for clients throughout the world. See a sample of them at our recent clients page.
We also offer Microsoft SQL Server / Azure / Cloud database development through our programmer partnership with Jay McCormick and his team.
The basic functioning of this database requires a form in the background or hidden from view. This form contains the code and timers to check for user inactivity. User inactivity is basically checking to see if the active form control has changed during the specified inactivity time out period - such as 20 minutes. The form examines the currently active form control every so often determined by the setting of the Timer Event on the form. This example has this value set to 10 seconds (10000 milliseconds). In a real database you would normally set this to a larger value such as 30 seconds or one minute.
All the code is available in this downloadable Microsoft Access example. Give it a try and let us know how you like it or if you have problems running it:
MS Access 2003
Copyright 2000-2017 Blue Claw Database Design
MS Access 2013, Access 2010 & Microsoft Office 2007