Results 1 to 2 of 2

Thread: Duplicate Records

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Posts
    2

    Post

    I am using ADO to connect to an Acess97 db in a data entry form. Social Sec. # is the primary key I want to be able to check the db for and existing record before allowing another to be added. Is there a way to do a seek on a db to find duplicate records?

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Try something like this:


    SELECT SSN FROM TableName GROUP BY SSN HAVING Count([SSN]) > 1 AND SSN = SSNNumberToCheck;



    Regards,

    ------------------

    Serge

    Software Developer
    [email protected]
    [email protected]



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width