Results 1 to 2 of 2
  1. #1
    Jay1395 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    2

    distinct count of a filtered column

    Hi,

    I am trying to get a count of distinct values in a filtered column. I have it actually working, but each run it gives me a popup which says "Unknown". It runs fine after that is clicked but I am working what I have written to cause that.. I took a screen shot of my expression builder.

    Click image for larger version. 

Name:	Capture.JPG 
Views:	5 
Size:	74.4 KB 
ID:	35225

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    With a function possibly based on

    Code:
    select count(YourField) as num_of_Something
    from
    (
        select distinct YourField from YourTable
    )

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

Similar Threads

  1. Distinct Count
    By ertweety in forum Queries
    Replies: 1
    Last Post: 04-15-2014, 10:10 AM
  2. Count Distinct
    By Newbie11 in forum Reports
    Replies: 8
    Last Post: 01-09-2013, 12:47 PM
  3. Replies: 2
    Last Post: 12-05-2011, 04:53 AM
  4. Distinct count in a query
    By Fabdav in forum Access
    Replies: 5
    Last Post: 09-14-2011, 04:53 PM
  5. Replies: 2
    Last Post: 11-18-2009, 06:49 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