Results 1 to 2 of 2
  1. #1
    LaughingBull is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Location
    Toledo Ohio
    Posts
    143

    counting ages

    I have a report that groups the program a person attends and then the ethnicity is grouped. in the detail is the sex and age group for the person. what I want to do is place the count of male or female and the different age group totals on the report footer.
    the report data source is a query of the info.
    it would be if statements like if age group =1 then count age
    if age group =2 then count age
    if age group =3 then count age
    if sex = 1 then count sex
    if sex =2 then count sex


    is sex =3 then count sex
    age group has its' own table
    on the main table age group is a lookup from the age group table
    I want 6 different expressions in the query to show the totals.
    I am not sure how to use the expression builder to create these iif statements, can you help?

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    Not knowing the structure of your data one can't give specific advice. But I would say in general you should establish/calculate your various counts using queries. Then consider the report object as the vehicle to display that data. Rather than considering the report object as the place to calculate the data. Hopefully this helps approach it. You may end up with a series of sub reports. I have certainly done that in the past.

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

Similar Threads

  1. Calculating Ages
    By kymwilkinson in forum Queries
    Replies: 3
    Last Post: 05-26-2015, 01:32 PM
  2. Replies: 9
    Last Post: 10-21-2013, 03:31 PM
  3. Counting guests based upon their ages
    By bellevue in forum Forms
    Replies: 3
    Last Post: 05-18-2012, 06:18 AM
  4. Closing down Access takes ages
    By bellevue in forum Access
    Replies: 4
    Last Post: 04-18-2012, 03:55 AM
  5. Sort Calculated Ages in to Age Groups
    By l3111 in forum Queries
    Replies: 2
    Last Post: 06-09-2011, 04:33 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