|
-
Aug 12th, 1999, 06:53 PM
#1
Thread Starter
New Member
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?
-
Aug 12th, 1999, 07:41 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|