Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicates in a table

Status
Not open for further replies.

victora

Programmer
Feb 11, 2002
118
US
Hi,
I have a Membership table that contains some duplicates. Although the member# is unique, there are cases like same member using 2 or 3 diff member#s.

I want to print these records. There are several fields that will contain the dup values: LastName, FirstName, MI, Sex & DateofBirth.

How can I select them?

thanks
victora
 
 0
Concatenate the fields {@alldupfields}:

{LastName}&{FirstName}&{MI}&{Sex}&{DateofBirth}

Add the formula to the details section along with {MemberID}.

Then group on the formula and go to edit selection formula-> group and create a group select formula:

distinctcount({MemberID},{@alldupfields})>=2

-LB
 
 0
LB's solution is nicely crafted, however I'd simplify that a bit for detecting more dupes:

uppercase({LastName}+left({FirstName},1)+{Sex}+totext({DateofBirth}))

This should help to discover typos in the first name and lack of middle initial, which is a common dupe criteria. The Uppercase may not be required.

I also added a totext on the dateofbirth assuming that it is a real date field.

-k
 
 0
Thank you guys, that one works...Another star for both of you. Thanks again
 
 0
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top