Results 1 to 3 of 3
  1. #1
    Join Date
    May 2009
    Posts
    6

    Trouble Summarizing in Group Footer

    I tried to explain this in an earlier post, but I think I made it too complicated, so I'll try to ask in a more simple manner:



    I have 3 related tables: CLIENT, PROGRAM and SUBSCRIPTIONS (the junction table). I created a report grouped first by PROGRAM, then by CLIENT with SUBSCRIPTIONS in the detail section. Each client can have more than 1 SubscriptionID for the PROGRAM. I am trying to calculate the number of CLIENTS in the program, and every "count" or "sum" expression I try returns a count of the SUBSCRIPTIONS, not a count of the CLIENT.

    For example, for a PROGRAM there are 3 CLIENTS, and 4 SUBSCRIPTIONS. That means one of the clients has 2 SUBSCRIPTIONS. When I create the field in the PROGRAM footer and enter the expression:

    =Count([ClientID])

    With ClientID being the foreign key in the SUBSCRIPTIONS table.
    It always returns a value of 4. When I view the report, there clearly are only 3 CLIENTS. What gives???

  2. #2
    Graysworld is offline Novice
    Windows Vista Access 2007
    Join Date
    Dec 2009
    Location
    Melbourne, Australia
    Posts
    6
    I have the same problem. Did you find a solution? Seems the community doesn't tend to answer this type of question.

  3. #3
    Graysworld is offline Novice
    Windows Vista Access 2007
    Join Date
    Dec 2009
    Location
    Melbourne, Australia
    Posts
    6

    Smile Trouble Summarizing in Group Footer

    Quote Originally Posted by Millerguitarworks View Post
    It always returns a value of 4. When I view the report, there clearly are only 3 CLIENTS.
    Ok, I've found the solution to my problem, and I think it might solve yours too. Sorry if it's too late. Follow the link:
    http://www.microsoft.com/office/comm...F-383FFF305F63

    My post was here:
    http://www.utteraccess.com/forums/sh...b=5&o=&fpart=1

    I think you will find that if you look at the record source (the query supplying the records) you will find there are 4 records, with one client repeated once. So when you count the number of clients (or programs), it will return 4. I think you will need to insert a text box in the ClientID header with ...
    Name: txtCountOfClients
    ControlSource: =count([clientID])
    Visible: No
    RunningSum: overall

    Then in the report footer...
    ControlSource: =txtCountOfClients

    If this doesn't work for your case, try adding the txtCountOfClients to the ProgramID header.

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

Similar Threads

  1. Replies: 0
    Last Post: 04-13-2009, 04:02 AM
  2. Replies: 0
    Last Post: 02-11-2009, 06:43 PM
  3. Totaling a value in group footer...
    By hodgy20 in forum Reports
    Replies: 0
    Last Post: 11-14-2008, 08:28 AM
  4. Need help with values in the footer
    By allochthonous in forum Reports
    Replies: 0
    Last Post: 03-03-2007, 08:20 PM
  5. Page Footer Top
    By RHall in forum Reports
    Replies: 3
    Last Post: 12-15-2005, 09:35 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