Results 1 to 3 of 3
  1. #1
    dr4ke is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    108

    'Count' two fields in a Query

    Afternoon,

    I have a query which provides a range of data (most importantly; MailboxSize and BusinessUnit). I would like to count mailbox sizes by BusinessUnit, i.e. below.

    Business unit 1 - X amount of 100GB mailbox's
    Business unit 1 - X amount of 200GB Mailbox's

    Business unit 2 - X amount of 100GB Mailbox's


    Business Unit 2 - X amount of 200GB Mailbox's

    is this possible without having a separate query for each Business Unit or Mailbox Size?

    Thanks

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Create an aggregate query BusinessUnit. MailboxSize added to the grid twice. Group on the BusinessUnit and the first MailBoxSize and Count the second MailBoxSize.

    Look here: http://www.techonthenet.com/access/f...eric/count.php

  3. #3
    dr4ke is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    108
    Perfect Thanks :-)

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

Similar Threads

  1. Count fields
    By hithere in forum Reports
    Replies: 7
    Last Post: 04-22-2012, 02:15 PM
  2. not count date fields if the same
    By Icky_Joe in forum Queries
    Replies: 2
    Last Post: 04-11-2012, 12:55 PM
  3. Multiple count of query fields
    By BLD21 in forum Queries
    Replies: 2
    Last Post: 05-23-2011, 01:09 PM
  4. Count and Sum of unbound fields?
    By C90RanMan in forum Forms
    Replies: 0
    Last Post: 07-29-2010, 01:17 PM
  5. two fields needing to look like one for a count how?
    By techexpressinc in forum Queries
    Replies: 2
    Last Post: 05-29-2009, 01:06 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