Results 1 to 4 of 4
  1. #1
    LevyEdge is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2016
    Posts
    2

    How to use =ColumnHistory in Report coming from a different query/table?

    Hello All! First post here.



    I am actually learning a few things here and there and I am trying to figure out how to use ColumnHistory in a report.

    I was using the provided "Call Log" template provided by Access and I noticed they used ColumnHistory in one of their reports. So I did a similar report but using the same command:

    =ColumnHistory([RecordSource],"Comments","[ID]=" & Nz([ID],0))

    But what I noticed is that it is using the "Cases" Table as the Record source. I did the report using the record source as a query called "Cases Query"

    I am not sure how to actually pull the appended information that is stored in the Cases Table to my report that is using a query as the record source.


    Would anyone have the information to help me with this?

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,526
    Try not to do any data calls in the report, do them in the query.
    The query should provide all the data needed to display.

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,446
    I seem to recall that columnhistory only works with a table and the history is not passed on via a query, so presumably your 'cases query' is based on the cases table which contains the comments field. If this is not providing what you require, try changing [Recordsource] to "Cases"

    Alternatively, take a look at this link

    http://stackoverflow.com/questions/3...in-access-2007

  4. #4
    LevyEdge is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2016
    Posts
    2
    This worked, thank you!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 9
    Last Post: 03-26-2015, 03:51 PM
  2. ColumnHistory
    By kdf in forum Programming
    Replies: 1
    Last Post: 03-27-2014, 01:34 PM
  3. criterium coming from another query
    By khhess in forum Queries
    Replies: 2
    Last Post: 02-11-2012, 02:28 PM
  4. Replies: 2
    Last Post: 09-01-2010, 09:51 PM
  5. =columnhistory
    By botts121 in forum Programming
    Replies: 1
    Last Post: 07-06-2009, 07:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums