Results 1 to 3 of 3
  1. #1
    offie is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    176

    Counting the total amount of rows in a subreport?

    This seems simple but I can't figure it out:

    I have a report with project numbers and a subreport with trade numbers:

    Project A


    Trade X
    Trade Y
    Trade Z
    Project B
    Trade Y
    Trade Z

    I would want to get a vlue of 5 rather than 2 (which would be =count(*)).

    I tried, using the expression builder
    Code:
    =Count( [FieldNotCompleted subreport1].Report![TradeCode] )
    but I get the "Enter parameter value" box.

    Any ideas? Thanks!

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Do you have a header or footer for the detail section with the field you are trying to use the Count() function with? Try placing your unbound control in the relative footer or header and use your expression there.

  3. #3
    offie is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    176
    The footer in the subreport? That wouldn't give me what I want. I actually figured it out, made another subreport with the query with all the info but didnt give it any relationship to the report, then counted that (in the header).

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

Similar Threads

  1. total amount
    By sdc1234 in forum Queries
    Replies: 12
    Last Post: 02-19-2014, 03:37 PM
  2. Replies: 1
    Last Post: 04-15-2013, 10:02 AM
  3. Replies: 3
    Last Post: 01-31-2013, 06:29 PM
  4. Query to check for a CERTAIN amount of rows
    By taimysho0 in forum Programming
    Replies: 8
    Last Post: 05-30-2012, 10:48 PM
  5. Replies: 2
    Last Post: 10-25-2010, 10:45 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