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

Repeating Record Search

Status
Not open for further replies.

montejr

Programmer
May 24, 2001
42
US
Hi all,
I have a parcel table containg pin numbers. I need this field (pin) to be the primary key. I can't because it has duplicate values. Is there a way that I can search for repeating values(pin's) in Access?

Thanks,
Michael
 
Try a query like this:
SELECT Table1.PinNbr, Count(Table1.PinNbr) AS CountOfPinNbr
FROM Table1
GROUP BY Table1.PinNbr
HAVING (((Count(Table1.PinNbr))>1));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top