Results 1 to 6 of 6
  1. #1
    lccrews is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Aug 2017
    Location
    Los Angeles
    Posts
    194

    My Audit Trail Isn't Woking


    I'm not sure why, but the data macro I am using for my audit trail isn't working. Any idea as to why? I followed directions from https://scottgem.wordpress.com/2012/...data-macros-2/ to a T. Click image for larger version. 

Name:	Untitled.png 
Views:	7 
Size:	19.9 KB 
ID:	30122
    Last edited by lccrews; 08-28-2017 at 03:36 PM. Reason: Wrong Picture

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,929
    what does 'isn't working' mean?

  3. #3
    lccrews is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Aug 2017
    Location
    Los Angeles
    Posts
    194
    Meaning, when I update [Item Number] on tbl_MBRSummary, a record isn't created on tbl_AuditChanges.

  4. #4
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,929
    unfortunately macros do not have any error handling, and I avoid them like the plague for that and other reasons

    Suggest go back to the author - he seems to have had plenty of questions from others not being able to get it to work - see what solutions he has suggested and try those.

    My observations: You have not followed his design exactly - Tablename in his example is text, in yours it is called Formname and is a table object, and have you created the function fosUserName, and do you know if it works?

  5. #5
    lccrews is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Aug 2017
    Location
    Los Angeles
    Posts
    194
    Thanks for the response Ajax, I need to comment on ScottGem's thread. I changed the names to suit my database. I do not know if fOSUserName() works and have tried removing it.
    Last edited by lccrews; 08-28-2017 at 04:16 PM. Reason: Added a sentence.

  6. #6
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,929
    see this comment from your link

    In this example I am using the fOSUsername() function found at http://www.mvps.org/access (see Note).

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

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