You can create a user login form with username and password, before you load your next form, insert code to add a new record with login stamp in a log table.
Alternativly - use the built in Access security model which is a better 'security' approach and do the logging separately.
Set up your database to have a Form that always opens first ( the startup form ) and stays open throughout the life of the database ( you might 'like to' / 'need to' make it hidden - so the user doesn't see it - but keep it open )
In the On_Load event of this form write some code that stores logging data to a log table and then puts the log table record PrimeKey data in a control on this form.
Finally in the Form_UnLoad event add code to re-open the record and write the log off time.
The data I store in my tblBBISWY ( that's Big Brother IS Watching You )
Date and Time Log On
Network LogOnId
Id of Computer used to access the database
DataBase LogOnId
Date and Time LoggedOff
'ope-that-'elps.
G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.