Access 2000 - I have the following query:
qryTick is UNION query. When I used it as shown it returned lots of records which are correct. However what I need is only one from each tblTracking.Tatno. I inserted TOP 1 after Select and I get only two records from the same tblTracking.Tatno. What am I doing wrong? Any help is appreciated.
Code:
SELECT tblTracking.Tatno, tblTracking.Taxpayer, qryTick.Item, qryTick.ActDate
FROM tblTracking INNER JOIN qryTick ON tblTracking.Tatno = qryTick.TatNum
WHERE (((tblTracking.Consol)="N") AND ((tblTracking.Related)="N") AND ((IsNull([tblTracking].[ClosedDate]))<>False))
ORDER BY tblTracking.Tatno;