Print Page | Close Window

LogUsersOff.mdb (intermediate)

Printed From: Roger's Access Library
Category: Roger's Access Library
Forum Name: Roger's Download Samples
Forum Description: A compendium of Microsoft Access 97 and 2000+ routines, each separated into its own sample database.
URL: www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=328
Printed Date: 09 Aug 2020 at 7:37pm
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: LogUsersOff.mdb (intermediate)
Posted By: Roger Carlson
Subject: LogUsersOff.mdb (intermediate)
Date Posted: 01 Aug 2008 at 12:48am

Please consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm" rel="nofollow - find out why here .
 

LogUsersOff.mdb

This sample illustrates how to automatically log all of your users out of an application for maintenance purposes.

There are several pieces:

1) code in the switchboard form OnTimer and OnLoad events

2) a linked table called 'Settings' with only one Yes/No field called 'Logoff'

3) frm_ExitNow modal form

4) code in frm_ExitNow OnTimer and OnLoad events

When you change the value of Logoff in the Setting table to Yes, the users will get a message on the screen telling them that they will be logged off in 5 minutes. The Switchboard form checks this field every 5 minutes and launches the message form. If they still have not logged off after another 5 minutes, they will be automatically logged off. It will also not allow anyone else to log into the application until Logoff is set back to No.

This sample is based on an article by Bill Woodcock in the May 1999 Access-Office-VB Advisor.
 
Download
Access 97 (23 KB): http://www.rogersaccesslibrary.com/forum/uploads/5/LogUsersOff97.zip" rel="nofollow - uploads/5/LogUsersOff97.zip

Access 2000 mdb (33 KB): http://www.rogersaccesslibrary.com/forum/uploads/5/LogUsersOff2k.zip" rel="nofollow - uploads/5/LogUsersOff2k.zip

Access 2010 accdb (47 KB)* :  http://www.rogersaccesslibrary.com/forum/uploads/5/LogUsersOff_2010_AutoRelinkBE.zip" rel="nofollow - uploads/5/LogUsersOff_2010_AutoRelinkBE.zip
       *
With auto-relinking code provided by http://www.devhut.net" rel="nofollow - Daniel Pineault | CARDA Consultants Inc.



-------------
Consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm" rel="nofollow - find out why here .<



Replies:
Posted By: carlrj
Date Posted: 20 Feb 2020 at 3:55pm
Access 2010 (accdb) version added with auto-relinking code added by Daniel Pineault.

-------------
--Roger Carlson



mailto:roger.j.carlson@gmail.com" rel="nofollow - roger.j.carlson@gmail.com



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net