Results 1 to 3 of 3
  1. #1
    roarcrm is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2014
    Posts
    27

    Totals Query

    Hi,



    I want to create a query that is based around one field (referral source) but then gives totals from all other fields. See attached image for what I'm after.

    The Male/female columns there don't actually exist, there's just one field called Gender. The same for Districts and Ages.

    It's a bit like a crosstab query but this only seems to work for one field? Any help to get 5/6 fields to appear please?

    Click image for larger version. 

Name:	query.png 
Views:	4 
Size:	4.5 KB 
ID:	20543

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    The data MUST have the word district, and 18-25, etc in the GENDER field. If not what you want,
    then you must build a query that produces these values.
    i myself, use a UNION query of many different queries, that produces a list of fields
    rowTitle, ColTitle, value

    THEN run a Crosstab query on that.

  3. #3
    roarcrm is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2014
    Posts
    27
    Quote Originally Posted by ranman256 View Post
    The data MUST have the word district, and 18-25, etc in the GENDER field. If not what you want,
    then you must build a query that produces these values.
    i myself, use a UNION query of many different queries, that produces a list of fields
    rowTitle, ColTitle, value

    THEN run a Crosstab query on that.
    What? Why would the gender field include districts and ages?

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

Similar Threads

  1. Similar to totals and Grand totals
    By Thompyt in forum Reports
    Replies: 14
    Last Post: 01-24-2015, 06:39 PM
  2. Replies: 2
    Last Post: 04-30-2014, 03:01 PM
  3. Unusual Sub Totals & Totals in Groups.
    By Robeen in forum Reports
    Replies: 12
    Last Post: 03-20-2012, 08:55 AM
  4. Replies: 5
    Last Post: 12-06-2011, 11:18 AM
  5. Month totals and Year totals
    By marksnwv in forum Access
    Replies: 1
    Last Post: 08-05-2011, 10:13 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