Results 1 to 4 of 4
  1. #1
    Fstetson is offline Novice
    Windows 10 Office 365
    Join Date
    Nov 2020
    Location
    http://www.htmdb.net
    Posts
    9

    Cool Help saving logged on User information

    I am keeping a log of various user account activities. Once logged in, I want to save/record that users name in a temp file for use while that user is performing other critical functions that my client wants to log as well. Such as crucial financial information that someone might delete. the4y want to knwo who did what and when. I am thinking a public variable that would open during autexec and delete tempfile upon database exit.




    I am using the following code in the login form;


    '///logs
    Set ulog = CurrentDb.OpenRecordset("tbl_logs", dbOpenDynaset, dbSeeChanges)
    With ulog
    .AddNew
    .Fields("logDate") = Date
    .Fields("logTime") = Now()
    .Fields("logActivity") = "Changed Password"
    .Fields("logDetail") = "(" & Me.f_username & ")" & " Used Forgot Password Function "
    .Fields("uID") = uI
    .Update
    End With
    So, I am hoping you all might have a good resource you could refer me to or provide a suggested process.


    Thank you very much.

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,574
    Google Access Audit log.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,425
    maybe this?

    https://www.youtube.com/watch?v=3sIHMGxugL0&t=5s

    You can use code with TempVars property to know who made the changes and post that along with the changes.
    Last edited by Micron; 12-13-2024 at 01:13 PM. Reason: clarification
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    For one approach to an audit trail, review http://allenbrowne.com/AppAudit.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. display user profile based on logged in user.
    By henry989 in forum Access
    Replies: 3
    Last Post: 05-14-2022, 07:59 AM
  2. Logged On? How to show who's Logged On...
    By Kaloyanides in forum Programming
    Replies: 3
    Last Post: 02-24-2018, 04:51 PM
  3. Replies: 4
    Last Post: 10-29-2016, 12:20 AM
  4. Getusername of currently logged in user
    By nkuebelbeck in forum Access
    Replies: 8
    Last Post: 06-29-2011, 04:06 PM
  5. Currently logged in user into text box
    By ne16428 in forum Security
    Replies: 5
    Last Post: 06-10-2009, 11:46 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums