I am using this code to track and display historical entries entered into a "Comments" field everytime a user adds comments to a record. The field is a memo field with Append Only property set to Yes. This code works fine when used as an unbound field on a form, but I keep getting an #Error when displaying it on a Report. My intent is to have the historical entries display on a report as well. The report source is a query, so it is only returning the last entry made. Is there a better way to save historical entries with a date/time stamp for a record?
Code used:
Code used:
Code:
=ColumnHistory([RecordSource],"Comments","[ID]=" & Nz([ID],0))
Comment