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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding duplicates & parsing strings

Status
Not open for further replies.

tyemm

Technical User
Feb 28, 2005
66
US
I am looking for potential duplicate records in a table. A duplicate would have the same LastName and IDNo, but there might be duplicates where an IDNo had leading zeroes, thus: 05887 and 5887 are really duplicates.
I've tried running the find duplicates wizard on Table1 with fields LastName and IDNo, and then trying a Right([Table1].[IDNo],4) in my duplicate criteria, but it is not working. Is there not a simple way to do this?
 
If they are always numbers stored as text, try using CInt([Table1].[IDNo]) or CLng([Table1].[IDNo]).

Sure, the early bird gets the worm, but the second mouse gets the cheese in the trap.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top