K Ken Snell \(MVP\) Nov 20, 2007 #2 SELECT NameOfField, Count(*) AS HowMany FROM TableName GROUP BY NameOfField;
A Allen Browne Nov 20, 2007 #3 Here's an ECount() function that extends the functionality of the DCount() in Access: http://allenbrowne.com/ser-66.html It includes an optional argument to ask for distinct count (i.e. number of unique values in the specified field.)
Here's an ECount() function that extends the functionality of the DCount() in Access: http://allenbrowne.com/ser-66.html It includes an optional argument to ask for distinct count (i.e. number of unique values in the specified field.)
J John Spencer Nov 20, 2007 #4 Access does not support the DISTINCT predicate in the aggregate functions so you have to build a Distinct query and then count SELECT Count(*) FROM (SELECT Distinct FieldOne FROM TableA) as UniqueFieldOne -- John Spencer Access MVP 2002-2005, 2007 Center for Health Program Development and Management University of Maryland Baltimore County ..
Access does not support the DISTINCT predicate in the aggregate functions so you have to build a Distinct query and then count SELECT Count(*) FROM (SELECT Distinct FieldOne FROM TableA) as UniqueFieldOne -- John Spencer Access MVP 2002-2005, 2007 Center for Health Program Development and Management University of Maryland Baltimore County ..