Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / July 2006

Tip: Looking for answers? Try searching our database.

Counting duplicates

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TJ - 26 Jul 2006 20:04 GMT
I am new to Access so bare with me.
I have a table with duplicate records. I need to count the distinct values.
I understand 'distinct' will not work in Access. How else can I count my
records without duplication?
Thanks.
Elaine - 26 Jul 2006 20:23 GMT
Click the Queries tab and then click New
Add the table with duplicates
Slect the fields that have duplicates -- do not include the Primary Key
field if you have one
Click the Sigma (Totals Query) button in the Tool Bar
Click Run -- you will get a list of unique records

> I am new to Access so bare with me.
> I have a table with duplicate records. I need to count the distinct values.
> I understand 'distinct' will not work in Access. How else can I count my
> records without duplication?
> Thanks.
John Spencer - 27 Jul 2006 13:02 GMT
Genericly:

SELECT Count(*)
FROM (SELECT DISTINCT FieldA, FieldB FROM YourTable)

Two query solution.
Build a distinct query and save it.  This is not the same as Count Distinct.
Use that in a totals query.

>I am new to Access so bare with me.
> I have a table with duplicate records. I need to count the distinct
> values.
> I understand 'distinct' will not work in Access. How else can I count my
> records without duplication?
> Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.