ColumnHistory to display on report

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JHamrick
    New Member
    • Feb 2012
    • 7

    ColumnHistory to display on report

    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:
    =ColumnHistory([RecordSource],"Comments","[ID]=" & Nz([ID],0))
    Last edited by NeoPa; Mar 8 '12, 12:42 AM. Reason: Added mandatory [CODE] tags for you
  • Mihail
    Contributor
    • Apr 2011
    • 759

    #2
    How you store this comments in your database ?

    Comment

    • JHamrick
      New Member
      • Feb 2012
      • 7

      #3
      The "Comment" field is a memo type.
      Last edited by NeoPa; Mar 8 '12, 12:43 AM. Reason: Removed quote.

      Comment

      • NeoPa
        Recognized Expert Moderator MVP
        • Oct 2006
        • 32633

        #4
        As you give us so little information my answer must be very general, but I'd suggest you build the report based on a query that supplies the data you need to include in it.

        Comment

        • JHamrick
          New Member
          • Feb 2012
          • 7

          #5
          What more info do you need? Any explanation on how to use the ColumnHistory function to display results on a report?

          Comment

          • NeoPa
            Recognized Expert Moderator MVP
            • Oct 2006
            • 32633

            #6
            Have a look at Access Answers Forum. There are two threads there you should have read that explain what you need to do when asking a question. If I'm doing that for you then I'm only going to encourage what is frankly a poor approach and attitude on your part.

            Let us answer the questions and we'll leave you your responsibility, which is to ask them correctly.

            Comment

            Working...