Fritz Paul
asked on
Prevent duplicate Name&Surname combination in form
I have a a form like below with data source tblPatients.
I want to be warned of duplication when I add a new Surname & FirstNames combination.
When I enter a FirstNames, before update, I want the form to test whether an equal Surname & FirstNames already exists in tblPatients.
Will you please help me with the VBA.
I want to be warned of duplication when I add a new Surname & FirstNames combination.
When I enter a FirstNames, before update, I want the form to test whether an equal Surname & FirstNames already exists in tblPatients.
Will you please help me with the VBA.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
But of course there is no reason a all why the database can NOT have two patients with the same name. There could easily be ten John Smiths in a patient records system.
ASKER
Thanks Rey. Spot on.