Hello,
I'm having trouble with a select query. I'll explain what I would like to see and maybe someone can suggest how I get there. I have a database that has duplicate patients, and unfortunately the quality of data is not always great due to the source - nothing I can really do about it. What I'm trying to do is have a form based on a query that will show my the surname, first initial, DOB and Healthcard No for patients that are duplicates (must have the same surname, first initial AND DOB and/or Healthcard No). The problem arrises in that not all records will have DOB and Healthcard No. Some will have one and not the other and some records will have both. So on my form (continuous form) each group will show with the number of duplicates which can be clicked and their full record looked at where I can confirm they are a duplicate and assign a unique ID. The problem here is to open the confirmation form with all duplicates showing since they may have different combinations of healthcard or DOB present.
Eg. Entrytable
FirstName Surname DOB Healthcard_No
Jane Doe 01/01/1970
Jane Doe 123456789
John Doe
Jane Doe 01/01/1970 123456789
Jane Doe
The query and hence the form should show:
FirstInitial Surname DOB Healthcard_No NoDups
J Doe 01/01/1970 123456789 3
Then click on the NoDups 3 and get all the full information(there are many more columns I didn't show here) that would allow for confirmation and assigning a unique ID.
I've been struggling with this for a while, any help is appreciated.
Thanks
I'm having trouble with a select query. I'll explain what I would like to see and maybe someone can suggest how I get there. I have a database that has duplicate patients, and unfortunately the quality of data is not always great due to the source - nothing I can really do about it. What I'm trying to do is have a form based on a query that will show my the surname, first initial, DOB and Healthcard No for patients that are duplicates (must have the same surname, first initial AND DOB and/or Healthcard No). The problem arrises in that not all records will have DOB and Healthcard No. Some will have one and not the other and some records will have both. So on my form (continuous form) each group will show with the number of duplicates which can be clicked and their full record looked at where I can confirm they are a duplicate and assign a unique ID. The problem here is to open the confirmation form with all duplicates showing since they may have different combinations of healthcard or DOB present.
Eg. Entrytable
FirstName Surname DOB Healthcard_No
Jane Doe 01/01/1970
Jane Doe 123456789
John Doe
Jane Doe 01/01/1970 123456789
Jane Doe
The query and hence the form should show:
FirstInitial Surname DOB Healthcard_No NoDups
J Doe 01/01/1970 123456789 3
Then click on the NoDups 3 and get all the full information(there are many more columns I didn't show here) that would allow for confirmation and assigning a unique ID.
I've been struggling with this for a while, any help is appreciated.
Thanks