Db-why-not
Registered User.
- Local time
- Today, 16:32
- Joined
- Sep 17, 2019
- Messages
- 160
I created an audit table for my database and I have been using the After Insert, After Update, After Delete Macros to create an audit trail in my audit_trail table. I created another Audit_Memo_fields table to track changes for my memo/ long text fields in my database. I can't get the macros to create a record in the Audit_Memo_fields table though. Not sure why it won't work. The two tables are exactly the same except one table has Long Text fields and the other table does not.
I have also noticed that when I try to create record in more than 1 table using the after delete/insert/update macros it only creates a record in the first table. If I change the order of the create record: table, whichever table is first will get the record put in but the second table will not have a record created in. I have included a screenshot of my macro for After Delete. I followed this website https://scottgem.wordpress.com/2012/10/18/audit-trail-using-data-macros-2/to create all the macros.
I have also noticed that when I try to create record in more than 1 table using the after delete/insert/update macros it only creates a record in the first table. If I change the order of the create record: table, whichever table is first will get the record put in but the second table will not have a record created in. I have included a screenshot of my macro for After Delete. I followed this website https://scottgem.wordpress.com/2012/10/18/audit-trail-using-data-macros-2/to create all the macros.