|
|
Using Social Security Numbers, but how do I get rid of duplicates.
I loaded a file with participant ssn numbers, but there are duplicates. How
do I get rid of the duplicates to get a record count of pariticipants? I can
do basic queries in Access and need help.
|
|
0
|
|
|
|
Reply
|
Utf
|
3/6/2008 5:35:03 PM |
|
Do you acutally want to get rid of the duplicates? Or just count unique
SSNs?
If the second option, you can write a query in the SQL view something like
this:
SELECT Count(SSN) AS CountOfSSN
FROM [SELECT SSN
FROM MyTable
GROUP BY SSN]. AS UniqueSSN;
Replace "MyTable" with your actual table name.
If you actually want to remove records with duplicate SSN, on my website
(www.rogersaccesslibrary.com), is a small Access database sample called
"RemoveDuplicates.mdb" which illustrates how to do this.
--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
"Donna" <Donna@discussions.microsoft.com> wrote in message
news:37833B6C-5252-4339-A512-CF39B0806551@microsoft.com...
>I loaded a file with participant ssn numbers, but there are duplicates.
>How
> do I get rid of the duplicates to get a record count of pariticipants? I
> can
> do basic queries in Access and need help.
|
|
0
|
|
|
|
Reply
|
Roger
|
3/6/2008 6:26:18 PM
|
|
I'm not familiar with SQL View, I'm realatively a novice with Access, simplet
queries, but I can try.
"Donna" wrote:
> I loaded a file with participant ssn numbers, but there are duplicates. How
> do I get rid of the duplicates to get a record count of pariticipants? I can
> do basic queries in Access and need help.
|
|
0
|
|
|
|
Reply
|
Utf
|
3/6/2008 6:56:06 PM
|
|
To do this in the grid takes two queries
First query gets a unique set of theSSN number
-- Build a query to return the SSN
-- In the query properties, set Unique Values to Yes
-- Save the query
Open a new query
-- use the saved query as the source
-- Add SSN to the field list
-- Select View: Totals from the menu
-- Change Group By to Count.
--
John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County
..
"Donna" <Donna@discussions.microsoft.com> wrote in message
news:E7FD9EB6-1F1A-4C4C-BD02-CBC37CF57C8D@microsoft.com...
> I'm not familiar with SQL View, I'm realatively a novice with Access,
> simplet
> queries, but I can try.
>
> "Donna" wrote:
>
>> I loaded a file with participant ssn numbers, but there are duplicates.
>> How
>> do I get rid of the duplicates to get a record count of pariticipants? I
>> can
>> do basic queries in Access and need help.
|
|
0
|
|
|
|
Reply
|
John
|
3/6/2008 7:51:16 PM
|
|
Donna,
If you are not too technical I found the following method to be very
effective to get rid of dups.
I firt would copy the main table... then past it... structure only... no
data. Then I would go into design mode on the new table and set the SSN
field as the PK. Then you simply create an append query with the source
being the original table and the detination being the new table... when the
query runs it will append all records to the new table... but since the SSN
is the PK it will not allow for dups to enter. This is the non-technical way
to do this ;) I have done this for years when I need something quick and
easy :) Hope this helps!
Jason
"Donna" wrote:
> I loaded a file with participant ssn numbers, but there are duplicates. How
> do I get rid of the duplicates to get a record count of pariticipants? I can
> do basic queries in Access and need help.
|
|
0
|
|
|
|
Reply
|
Utf
|
3/7/2008 5:28:02 PM
|
|
|
4 Replies
377 Views
(page loaded in 0.121 seconds)
Similiar Articles: Using Social Security Numbers, but how do I get rid of duplicates ...I loaded a file with participant ssn numbers, but there are duplicates. How do I get rid of the duplicates to get a record count of pariticipants? ... Sort Last 4 Numbers of SSN - microsoft.public.access.queries ...... the last 4 numbers of a member's SSN do we already have duplicates. I do not ... I need to display on a form the last for digits of a social security number. How do I limit ... Check For Duplicate Name Before Creating Record - microsoft.public ...... even at that the Social Security Administration has issued duplicate SSN's. Use ... to add an identity number to your patients table and use ... code to check for duplicates ... Handle Duplicate Primary Key Field at Time of Entry Instead of at ...And, wouldn't you want to prevent duplicates ... are a few here and there who do not wish to be known to the Social Security ... is in your control, such as unit numbers ... duplicate address detection add-in for MS Access - microsoft ...... at a package that would use various forms of "fuzzy logic" to find duplicates ... public.access duplicate ... It is meant to detect a duplicate social security number when ... KB979683 driving me crazy - microsoft.public.windowsupdate ...... the solution suggested at <http://social ... that your problem is related to a Security Update and cite the update's KB number ... and who might be desperate to get rid of ... Display required succeeding cells value if a cell value A1 is capt ...I used a TRIM() function but of no use. The Macro is unable to detect. How can we get rid of ... A1) TEXT function and new behavior; Social security ... Display numbers as ... IE8 - no "open link in new tab" option - microsoft ...Get rid of all the ones you don't need - it's highly ... take "forever" is yes, because of the sheer number and ... tabs in quick succession) and 3) that on a social ... unique number for a system - microsoft.public.vc.mfc... number - microsoft.public.access ... How to assign unique number to column duplicates ... ... Some organizations also include the Social Security Number in the locator system ... MFC under VS2010 - microsoft.public.vc.mfc... in REAL systems the first thing we do is get rid of ... and run on the platform that is number one? (you can still use C++ on ... Stop security/malware risky programs. Stop ... Using Social Security Numbers, but how do I get rid of duplicates ...I loaded a file with participant ssn numbers, but there are duplicates. How do I get rid of the duplicates to get a record count of pariticipants? ... How to Get a Duplicate Social Security Card | eHow.comOnce a Social Security number... How to Get a Replacement Social Security Card in Illinois. Obtaining a replacement Social Security card in Illinois does not cost anything ... Finding and Eliminating Duplicate Data - DevX - Your Information ...For example, it could be the Social Security Number field, or Last Name and First ... allows you to select one row per group—duplicates and non-duplicates—so that you get ... How to Get a Social Security Number | eHow.comNew rules from the Social Security Administration, created with national security in mind, have tightened the requirements for getting a Social Security Card with a ... Get Or Replace A Social Security CardSocial Security number & card: Get a new or replacement card 7/23/2012 7:53:11 AM
|
|
|
|
|
|
|
|
|