| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > DbAuditManager > DbAuditManager Methods >====== BeforeChange (update audit log file before file change) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[appendlog initiate audit log file update .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[createheader create log file header records .htm|{{btn_next_n.gif|Next page}}]] | | || **BeforeChange(**//filename//**,** //BFP//**), VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} | **BeforeChange** | Update the Audit log file before any file update | | //filename// | A string constant, variable, EQUATE, or expression containing the label of the file that is to be audited. | | //BFP// | The label of a BufferedPairsClass object. See //BufferedPairsClass //for more information. | The **BeforeChange **method saves the values of the record before a change is made. These values are used for comparison after the record is saved back to disk. **Implementation:** The BeforeChange method sets the Action property and saves the current field values to the log file. This method is called from the DbChangeManager.CheckChanges method. **See Also:**     [[bufferedpairsclass.htm|BufferedPairsClass]], [[checkchanges check record for changes .htm|DbChangeManager.CheckChanges]]