B Brendanpeek Aug 29, 2008 #1 i need a query that will display the values in the field but i do not want the query to show duplicate values.
i need a query that will display the values in the field but i do not want the query to show duplicate values.
M Michel Walsh Aug 29, 2008 #2 SELECT DISTINCT fieldName FROM tableName or SELECT fieldName FROM tableName GROUP BY fieldName The second syntax can be expanded to include the number of time each value occur, as example,with: SELECT fieldName, COUNT(*) FROM tableName GROUP BY fieldName Vanderghast, Access MVP
SELECT DISTINCT fieldName FROM tableName or SELECT fieldName FROM tableName GROUP BY fieldName The second syntax can be expanded to include the number of time each value occur, as example,with: SELECT fieldName, COUNT(*) FROM tableName GROUP BY fieldName Vanderghast, Access MVP
B Brendanpeek Aug 30, 2008 #3 Thanks That was great Michel Walsh said: SELECT DISTINCT fieldName FROM tableName or SELECT fieldName FROM tableName GROUP BY fieldName The second syntax can be expanded to include the number of time each value occur, as example,with: SELECT fieldName, COUNT(*) FROM tableName GROUP BY fieldName Vanderghast, Access MVP Click to expand...
Thanks That was great Michel Walsh said: SELECT DISTINCT fieldName FROM tableName or SELECT fieldName FROM tableName GROUP BY fieldName The second syntax can be expanded to include the number of time each value occur, as example,with: SELECT fieldName, COUNT(*) FROM tableName GROUP BY fieldName Vanderghast, Access MVP Click to expand...