Results 1 to 7 of 7
  1. #1
    varu is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2014
    Posts
    4

    Need to count number of students visiting each office.


    I need a query which counts the number of students visiting each office. Till now, I have a query which lists name of the students who have visited each office and how many times they have visited.
    Click image for larger version. 

Name:	Screen Shot 2014-07-22 at 11.58.25 AM.png 
Views:	9 
Size:	149.8 KB 
ID:	17421
    ^This is what I have till now. But I need the count for each office. For example, 7 students have visited Career Planning but the total number of meetings for that office is 9 since two students visited twice. How do I get my query to count the number of students? (Career Planning =7)

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    remove the [calculate NAME] from the query.

  3. #3
    varu is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2014
    Posts
    4
    I tried that.But that just gives me the total number of appointments. So using the same example, it would say Career Planning =9 and not 7.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    try
    Select [AREA], Count([AREA])
    FROM yourtablenameGoesHere
    GROUP BY [AREA]

  5. #5
    varu is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2014
    Posts
    4
    @orange
    This gives me the same problem! It counts number of meetings and not the number of individual students who have had meetings

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Please show us the design of each of your tables. And some sample data. And a clear statement of WHAT you are trying to do. You can use your test data to create a sample of what you want as result.

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    double post............... removed latest

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

Similar Threads

  1. Count of specific number
    By samirmehta19 in forum Access
    Replies: 3
    Last Post: 05-20-2013, 02:29 PM
  2. Count number of days
    By ramindya in forum Queries
    Replies: 1
    Last Post: 02-22-2012, 04:47 PM
  3. Upgrading from Office XP to Office 2010
    By Mohamed in forum Access
    Replies: 1
    Last Post: 02-20-2012, 11:32 AM
  4. Replies: 6
    Last Post: 07-25-2011, 01:54 PM
  5. Count Text as Number
    By AccessFreak in forum Forms
    Replies: 1
    Last Post: 01-04-2011, 12:49 PM

Tags for this Thread

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