I have used the duplicate finder query wizzard to generate the query below.
=============================================
SELECT qryAD.VisitDate, qryAD.DOB, qryAD.aid, qryAD.vil
FROM qryAD
WHERE (((qryAD.VisitDate) In (SELECT [VisitDate] FROM [qryAD] As Tmp GROUP BY [VisitDate],[DOB] HAVING Count(*)>1 And [DOB] = [qryAD].[DOB])))
ORDER BY qryAD.VisitDate, qryAD.DOB;
==============================================
I now want to add date perameters from a form so I can see only certain periods of time. I use the following syntax
Between [Forms]![Date Range Form]![Start Date] And [Forms]![Date Range Form]![End Date] to select the date range.
Can someone please show me how to add the date range above to this query? I have no real knowledge of SQL but looking to learn.
=============================================
SELECT qryAD.VisitDate, qryAD.DOB, qryAD.aid, qryAD.vil
FROM qryAD
WHERE (((qryAD.VisitDate) In (SELECT [VisitDate] FROM [qryAD] As Tmp GROUP BY [VisitDate],[DOB] HAVING Count(*)>1 And [DOB] = [qryAD].[DOB])))
ORDER BY qryAD.VisitDate, qryAD.DOB;
==============================================
I now want to add date perameters from a form so I can see only certain periods of time. I use the following syntax
Between [Forms]![Date Range Form]![Start Date] And [Forms]![Date Range Form]![End Date] to select the date range.
Can someone please show me how to add the date range above to this query? I have no real knowledge of SQL but looking to learn.