I am currently working on a database and I am at the point where I add my auditing code to track edits, adds and deletes. I found this code many years ago on this forum and I have been using it for all my databases. There is a module built with the code that performs the function of tracking. The After Update, Before Update, Delete and After Delete Confirm functions of a form are set with the following code.
I getting the error at the BeforeUpdate function.
Main table: tbl_ManagedIP
Audit Temp: audTmpManagedIP
Audit table: audManagedIP
Primary key: PhnIndex
Code:
Private SubForm_AfterDelConfirm(status As Integer)CallAuditDelEnd("audTmpManagedIP", "audManagedIP", status)
End Sub
Private SubForm_AfterUpdate()
CallAuditEditEnd("tbl_ManagedIP", "audTmpManagedIP","audManagedIP", "phnindex", Nz(Me!phnindex, 0),bWasNewRecord)
End Sub
Private SubForm_BeforeUpdate(Cancel As Integer)
bWasNewRecord =Me.NewRecord
CallAuditEditBegin("tbl_managedip", "audTmpManagedip","phnindex", Nz(Me.phnindex, 0), bWasNewRecord)
End Sub
Private SubForm_Delete(Cancel As Integer)
CallAuditDelBegin("tbl_managedip", "audTmpmanagedip","phnindex", Nz(Me.phnindex, 0))
End Sub

I am including a screenshot of the error. In the past I have never gotten this type of error before. I am currently on Office365 ProPlus.
Any help on this error would be greatly appreciated.
Vito