I try to make a audittrail function to monitor users edit the records. I used a template in the website and the code is
however, when I try to debug-->compile , i got this error message: Compile Error: Method or data memember not found. and it highlited my ProjectName part. BUt I do have the variable name ProjectName in my form and table. It also happend to some other variables, but not all the variables. Can somebody help me to figure out what cause this error.
Many thanks.
Code:
Private Sub ProjectName_BeforeUpdate(Cancel As Integer)
WriteAuditUpdate txtTableName, Me.ID, "ProjectName", Me.ProjectName.OldValue, Me.ProjectName.Value
End Sub
however, when I try to debug-->compile , i got this error message: Compile Error: Method or data memember not found. and it highlited my ProjectName part. BUt I do have the variable name ProjectName in my form and table. It also happend to some other variables, but not all the variables. Can somebody help me to figure out what cause this error.
Many thanks.