Hello!
I have built an audit trail functionality for a data entry from and I am in need to bring back the most recent change date from a report that tracks all of the changes made to my data entry form. The following explains the different objects that I have.
- Data Entry Form
- Table that logs the changes
- A report that receives its records from the table that logs the changes
- The data entry form uses an auto-number for its primary key lets call it RegistrationReviewID
- Both the table and the report also track that field
- The report assigns a date stamp every time it logs a change, so lets say that the report has 10 records for logged for the RegistrationReviewID 1
- The earliest record on the report is at the beginning of the current month and the most recent is from yesterday.
- I have created this expression (inside of an unbound text field) on the report =Max([DateTime]) and placed it on the record heading for a quick look at the most recent change date for that record. The name of that object is "MostRecentChangeDate"
- Now I would like to bring that value back to the form where it matches the RegistrationReviewID to also identify when was the most recent or last change date to that record.
- I created the following expression on the form but it doesn't work.
=IIF([RegistrationReviewID]=[Reports]![rptAuditTrail]![RegistrationReviewID],[Reports]![rptAuditTrail]![MostRecentChangeDate],"Original")
- Please help!
- Thank you very much for your assistance!!!