Writing a Message/Record Log
Posted on 2001-06-14
I am writing an app and the user has requested that a LOG file be kept that shows ALL modifications made to each table. ie. Date, time, who made the change, table modified, actual data before change, data after modification, type of modification.
As there are approximately 20-30 tables that would need to be tracked, I thought that when a table is modified, I could call a single function which updated a LOG Table.
My question, where would be the best place to call the function or functions, ie. BeforeEdit, AfterEdit, OnUpdateRecord etc.
I understand that I would possibly have to call the function before and after updates to record previous data and new data.
Also, would I have to call this function from every table I modify, or is there a single place I could call it from.