I have 1 "All" table with the following field names
ID --> Autonumber and Primary Key
Firstname --> Text
Surname --> Text
Doctor --> Text
Diagnosis --> Text
Notes --> Text
DOB --> Date/Time
I have a form "New" to add new patients to the data base
I would like the DOB to find any duplicated data.
which i have working with this code
Expand|Select|Wrap|Line Numbers
- If Nz(DLookup("[DOB]", "ALL", "[DOB]"), Me.DOB) <> Me.DOB Then GoTo NO Else GoTo YES
see if DOB "duplicate" has the same FirstName
and Surname and then warn the user that the patient already
exist but if it doesn`t the carry on.
Thank you in advanced sorry for carrying on :-)