LilyK,
Seems there is an issue with formatting when I tried to edit my post?? I know there have been issues with the forum's
Search feature recently, but this formatting seems bizarre.
I don't understand what the audit table is reporting when I look at the entire log.
For thoroughness you should be recording the RecordID of the record being add/edit/delete in the audit trail.
I don't understand your form/subform linkage
View attachment 89340
The log seems to reflect my test actions
tblAuditTrail
tblAuditTrail
AuditTrailID | DateTime | UserName | FormName | Action | RecordID | FieldName | OldValue | NewValue |
---|
28 | 18-Feb-21 2:20:22 PM | Jack | RecordsData_subform | NEW | abc jed TEST | Reference_Number | | abc jed TEST |
29 | 18-Feb-21 2:20:22 PM | Jack | RecordsData_subform | NEW | abc jed TEST | Title | | another test 2:20 |
31 | 18-Feb-21 2:21:23 PM | Jack | RecordsData_subform | NEW | | Reference_Number | | |
32 | 18-Feb-21 2:21:23 PM | Jack | RecordsData_subform | NEW | | Title | | another test a little later |
34 | 18-Feb-21 2:21:35 PM | Jack | RecordsData_subform | NEW | | Reference_Number | | |
35 | 18-Feb-21 2:21:35 PM | Jack | RecordsData_subform | NEW | | Title | | another test a little later |
37 | 18-Feb-21 2:21:51 PM | Jack | RecordsData_subform | NEW | | Reference_Number | | |
38 | 18-Feb-21 2:21:51 PM | Jack | RecordsData_subform | NEW | | Title | | another test a little later |
40 | 18-Feb-21 2:26:29 PM | Jack | RecordsData_subform | NEW | xyz jed testing 2:25 | Reference_Number | | xyz jed testing 2:25 |
41 | 18-Feb-21 2:26:29 PM | Jack | RecordsData_subform | NEW | xyz jed testing 2:25 | Title | | test after removing Tag label |
43 | 18-Feb-21 2:27:11 PM | Jack | RecordsData_subform | EDIT | xyz jed testing 2:25 | Title | test after removing Tag label | test after removing Tag from label |
45 | 18-Feb-21 2:29:03 PM | Jack | RecordsData_subform | DELETE | abc jed TEST | Reference_Number | abc jed TEST | |
46 | 18-Feb-21 2:29:03 PM | Jack | RecordsData_subform | DELETE | abc jed TEST | Title | another test 2:20 | |
I just realized your buttons are tied to macros, not the vba code that I had written??
I'm somewhat confused since your video isn't one I have used and I don't use macros --perhaps were working in entirely different scenarios???