Results 1 to 5 of 5
  1. #1
    John_sc is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2015
    Location
    South Carolina
    Posts
    34

    My report does not seem to see columns created in the underlying query


    I created a query ReportQuery. I am trying to display a calculated field in my report. It shows up in the query - I can see it. But the report is giving me the error that it does not find this field. The filed gives me any text beyond 255 characters in a memo field.

    Code:
    ExtendedText: IIf(Len([CleanText])>255,Mid([CleanText],256),"")
    In the report I reference ReportQuery.ExtendedText as the control source.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    That is hard to believe. All fields in the query should be visible to the report.

  3. #3
    JamesDeckert is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jul 2015
    Location
    Salina, KS
    Posts
    262
    So running the query by itself works? (shows field info longer than 255)
    And the report has the query as it's record source?
    Then the control source for the field should work with ExtendedText as the control source as long as this is the same spelling in the query.
    Is
    ExtendedText available when you click the dropdown of fields to choose from on the control source?

  4. #4
    John_sc is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2015
    Location
    South Carolina
    Posts
    34
    This is why I posted the question. My experience indicated I should have been able to see calculated field. In fact, I have other calculated fields in the query, and I can see those.

    One out of the ordinary thing I am doing is that I placed a parameter in the query. (not sure if this is the proper term) As one of my criteria, I entered the condition [Enter Target Date], which is not a field. When the query runs, it asks the user to [Enter Target Date], which is then used to constrain the query. This works fine. but I don't get the calculated fields.

    To try to debug things, I removed this parameter, and modified the report, but it still seems to be using the old query. The query does not ask for the date, but the report does. The calculated fields I can not see were added later than the ones I can see. So it seems that I need to somehow refresh the query request from the report. Any ideas?

  5. #5
    John_sc is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2015
    Location
    South Carolina
    Posts
    34
    Found the problem. The record source was a query itself - it did not just reference the other query. The query in the report explicitly listed the fields, which did not include my new calculated fields. I think once I update this, it should work.

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

Similar Threads

  1. Report with 4 columns (1 query per column)
    By Telejazzer in forum Reports
    Replies: 3
    Last Post: 06-12-2015, 12:24 PM
  2. Replies: 1
    Last Post: 06-03-2014, 06:56 AM
  3. Replies: 2
    Last Post: 10-31-2013, 07:08 AM
  4. Replies: 7
    Last Post: 01-08-2012, 06:20 PM
  5. underlying form prints instead of report
    By usmcgrunt in forum Reports
    Replies: 1
    Last Post: 09-17-2010, 05:22 AM

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