Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Track Log On < Sliders | DMin >
 
Track Log On
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   8 months ago


Back to Track Log On
 

Track Logon and Logoff Upload Images   Link  
Norman Houghton 
5 months ago
Hi
I implemented your method for tracking user logon and logoff.  I have a login form and used the code to insert the logon event after the user's username and pssword have been checked.  I used the code to insert the logoff event in the form's unload event.
The login form stays open in hidden mode after the users have logged in.
The login events are recorded without any issue but the logoff event recording is behaving strangely.  Multiple logoff events are often recorded, sometimes 3 or 4 within seconds, sometimes minutes apart?  The weirdest one was when 30 logoff events were recorded for one user.
Can't understand what would cause this - I would think the form can only have one unload event?
Any ideas what could be causing this?
Thanks
Richard Rost
5 months ago
That is quite strange. You're running it in the On Unload event? You're right, that usually only fires once per form close. Without seeing your database, it's difficult to say. Maybe try running down the Troubleshooter.
Norman Houghton
4 months ago
Hi Richard, just for information, I think it was probably being caused by corruption in the database.  
One day when trying to open the database I got an error message saying Access had detected the database was in 'an inconsistent state' and it would try to recover it.   It did recover successfully without any apparent loss of data and I haven't seen the problem with recording multiple logoffs since.
Thanks
Richard Rost
4 months ago
Yeah, when in doubt, with any funky errors, first things I do are Compact, and compile my VBA.

This thread is now closed. If you wish to comment, start a NEW discussion, below.
 


Back to Track Log On Comments
 

Start a NEW Conversation
 
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.
 
Subscribe
 

You may want to read these articles from the 599CD News:

5/24/2022Multi-Table Forms
5/23/2022Variables
5/21/2022Access Developer 39
5/21/2022Access Developer 39 Lessons
5/21/2022Access Developer 39
5/21/2022Select Items in Related Table
5/21/2022Clear List Box
5/21/2022Multi Select List Boxes
5/21/2022New Access Beginner 3
5/20/2022Gift Certificates
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn