Results 1 to 5 of 5
  1. #1
    REBBROWN is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2010
    Posts
    14

    A simple Audit Trail (hoping)

    Hey all,
    I am hoping there can be an easy way to accomplish this.
    Before I go into it, let me make clear that the DB I am creating will be used by a user with Access 2007, not 2010.
    If they were using 2012 I believe that is some new kind of Macro that could be used.
    Bottom line I need a stripped down, simple Audit trail.



    I found one but it is overkill, here is the link for it

    http://allenbrowne.com/AppAudit.html

    Here is what I have done so far:
    I have this in a query

    USER: fOSUserName()

    It captures the name but here is the problem I found, it's not really logging the user name in a table, only displaying it.
    I put in a bunch of dummy records to test all the functions and it says all those records were input by "User1". Then I created another login on my Windows 7 laptop and called it "User2".
    You guessed it, not it seems that all those records were input by "User2".
    I don't care about delete, edit, only add.
    I need it to capture and store the Windows user that input the record.
    How is a relatively easy way to accomplish this?
    any and all help very much appreciated

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    What exactly do you want to log? Only after we know that can we determine what is overkill.
    Here's another audit log from Martin Green.

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Sometimes I will use a form to append a record. I usually disable the Navigation Buttons in cases like this and the form opens in data entry mode. Other times, I will use an action query to append records. Another approach is to use VBA and DAO to append records.

    I would identify where and how records are being appended and populate the appropriate field with the user ID at the time a record is appended.

  4. #4
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 64bit Access 2013
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529

  5. #5
    REBBROWN is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2010
    Posts
    14
    THANK YOU !
    This worked

    http://www.datawright.com.au/access_..._in_access.htm

    I don't care about changes or deletes, just logging who puts in the record.
    Thanks again

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

Similar Threads

  1. Audit Trail Help
    By HelpDesk in forum Access
    Replies: 9
    Last Post: 08-07-2015, 06:13 AM
  2. Having an audit trail
    By ryanmce92 in forum Modules
    Replies: 5
    Last Post: 06-03-2015, 02:29 PM
  3. Replies: 2
    Last Post: 02-09-2013, 12:39 PM
  4. Audit Trail
    By bigroo in forum Programming
    Replies: 4
    Last Post: 02-22-2012, 07:55 PM
  5. audit trail
    By slimjen in forum Forms
    Replies: 1
    Last Post: 10-13-2011, 01:52 PM

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