Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2009
    Posts
    1

    Please help with this query!

    I am trying to create a query in ms access which is a union.
    The query counts how many applicants come from each town. However when I run the query it shows how many applicants come from each town in one row however you cannot tell which towns the applicants come from, all you get is a list of numbers.

    Here is the query:



    SELECT Count(tblApplicant.Town) AS No_Of_Applicants
    FROM tblApplicant
    WHERE (((tblApplicant.Town)='Buckinghamshire'));
    UNION ALL
    SELECT Count(tblApplicant.Town) AS No_Of_Applicants
    FROM tblApplicant
    WHERE (((tblApplicant.Town)='Essex'));
    UNION ALL
    SELECT Count(tblApplicant.Town) AS No_Of_Applicants
    FROM tblApplicant
    WHERE (((tblApplicant.Town)='Hertfordshire'));

    Is there any way that I can get the number of applicants under the headings of the towns.
    Please help
    Thanks in advance.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Have you looked into the CrossTab query wizard yet?

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

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