Results 1 to 2 of 2
  1. #1
    maxx102 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    14

    Query - Counts

    Hello, I am not really sure how to word this but I will take my best shot as I am asking for some assistance.



    I am in the process of converting a very large, multi-page Excel spreadsheet into a Access Database.

    This database is going to be used to quickly look up and update members of our building's emergency response team, their location, training, etc.

    In my main db list I have things like last name, first name, the building the work in, the floor they work on, and what training certs they currently posses.

    One of the pages on the spreadsheet has a floor by floor count of personnel. Example - tower #1 - floor 1 = 2 people, Tower 1 - floor 2 = 6 people, Tower 3 - Floor 3 = 4 people.

    In the database table, I have a column named "Building" and a column named "Floor". Is there a way to run a query that would show all of the various counts on one page. Meaning, if I have 10 floors, a 60 people, can I have access tell me what floors have what number of people on them, if so, how do I do it?

    Sorry if this is confusing.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,928
    That sounds like a GROUP BY (Totals) aggregate query. With QueryDesigner in DesignView click the Totals button on ribbon. The SQL would be something like:
    SELECT Tower, Floor, Count(*) As CountPersonnel FROM tablename GROUP BY Tower, Floor;

    Or build a report that uses Grouping & Sorting with aggregate calcs in group footers.

    These are basic Access functionality and Access Help has guidelines. Or Google for on-line tutorials. Or refer to an introductory book.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 5
    Last Post: 10-26-2012, 08:46 AM
  2. Query Not Returning Zero Counts
    By TimMoffy in forum Queries
    Replies: 3
    Last Post: 07-05-2012, 10:08 PM
  3. Counts & Calcuations in Select Query
    By BLD21 in forum Queries
    Replies: 4
    Last Post: 04-08-2011, 11:29 AM
  4. Replies: 4
    Last Post: 10-01-2010, 12:06 PM
  5. Reporting counts in another query...maybe?
    By Geewaagh in forum Queries
    Replies: 7
    Last Post: 06-04-2010, 07:39 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