Results 1 to 2 of 2
  1. #1
    Join Date
    May 2014
    Posts
    1

    Question Conditional Counting?

    First time user here.

    I have two tables that I want to count a certain result. One table is called "Orgs" and the other is called "Apps". There is a field in "Apps" called "Status".



    I am looking to return Name and Address from "Orgs" for any Org which has a zero count in "Apps" for "Status" being "Approved".

    I tried a simple SELECT from both tables but it would not allow me to use Count([Apps].[Status]) = 0 as a criteria.

    Can someone point me in the right direction, please?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Can you post the entire SQL? You need to make sure your Count() function is included in the SELECT statement before you can include it in the WHERE clause.

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

Similar Threads

  1. Replies: 6
    Last Post: 05-26-2013, 09:10 PM
  2. Counting in
    By tngirl in forum Reports
    Replies: 7
    Last Post: 05-24-2013, 11:15 AM
  3. Counting
    By GeirA in forum Queries
    Replies: 7
    Last Post: 02-29-2012, 02:58 PM
  4. Counting Help
    By Jessyx in forum Access
    Replies: 1
    Last Post: 12-03-2011, 01:34 AM
  5. Counting
    By rfs in forum Forms
    Replies: 0
    Last Post: 03-15-2011, 03:20 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