I have set up a query to indentify if there is a duplicate entry on a presons name. The query shows the Students forename, surname and their address.
I would like the query to run after the surname field is updated on the data entry form. But I only want it to run when the query has identified that there is a duplicate entry.
Here is the line of code I used in the query under the students forename in the criteria line
In (SELECT [forename] FROM [students] As Tmp GROUP BY [forename],[surname] HAVING Count(*)>1 And [surname] = [students].[surname])
Any ideas of how I can get this to run ONLY when it has identified a duplicate entry?
I would like the query to run after the surname field is updated on the data entry form. But I only want it to run when the query has identified that there is a duplicate entry.
Here is the line of code I used in the query under the students forename in the criteria line
In (SELECT [forename] FROM [students] As Tmp GROUP BY [forename],[surname] HAVING Count(*)>1 And [surname] = [students].[surname])
Any ideas of how I can get this to run ONLY when it has identified a duplicate entry?