Gm. I changed the table to narrow down the dates so I would not need the max date. All the records in the table have a current and the same date. I thought I had this problem solved. But when I applied this code to another table with the same concept; it returned data that matched the data in both tables and a lot of duplicates. Please review my code. I've compared it to the previous table that works and only changed field names and I am getting less than desirable results.
Thanks
Code:
SELECT qryMed.SSN, qryMed.CoverageLevel, qryMed.PPeriod, qryMed.CliRate, qryMed.ERate, qryMed.TotRate, qryMed.SnapShotDte
FROM qryMed INNER JOIN tblEECoverage ON qryMed.SSN = tblEECoverage.SSN
WHERE (((Nz([qryMed].[CovLevel]))<>Nz([tblEECoverage].[CovLevel]))) OR (((Nz([qryMed].[PayPeriod]))<>Nz([tblEECoverage].[PPeriod]))) OR (((Nz([qryMed].[CliRate]))<>Nz([tblEECoverage].[CliRate]))) OR (((Nz([qryMed].[ERate]))<>Nz([tblEECoverage].[ERate]))) OR (((Nz([qryMed].[TotRate]))<>Nz([tblEECoverage].[TotRate])));