| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > DbAuditManager > DbAuditManager Methods >====== OnInsert (update audit log file when a record is added) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[onfieldchange virtual method for each field change .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[openlogfile open the audit log file .htm|{{btn_next_n.gif|Next page}}]] | | || **OnInsert(**//filename//**,** //file//**), VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} | **OnInsert** | Initiates an update the audit log file on an Insert action. | | //filename// | A string constant, variable, EQUATE, or expression containing the label of the file that is to be audited. | | //file// | The label of the FILE being auditied. | The **OnInsert **method initiates the update to the audit log file on an Insert action. **Implementation:** The OnInsert method sets the Action property and calls the AppendLog method. This method is called from the FileManager's Insert method. **See Also:**     [[insert add a new record .htm|FileManager.Insert]]