I have two tables joined by StationID. In a query that shows which companies (stations) have a link (RPCustomerPoNumber) to field in the other table, but I only want to see that company name once. The query is unbound.
SELECT DISTINCT tblRepReport.StationID, tblStationData.[Station Name], tblRepReport.RPCustomerPONumber
FROM tblStationData LEFT JOIN tblRepReport ON tblStationData.StationID = tblRepReport.StationID
WHERE (((tblRepReport.RPCustomerPONumber) Is Not Null))
ORDER BY tblStationData.[Station Name];
Thanks for any help as I thought SELECT DESTINCT would do this. I have tried all join types.
Bob
SELECT DISTINCT tblRepReport.StationID, tblStationData.[Station Name], tblRepReport.RPCustomerPONumber
FROM tblStationData LEFT JOIN tblRepReport ON tblStationData.StationID = tblRepReport.StationID
WHERE (((tblRepReport.RPCustomerPONumber) Is Not Null))
ORDER BY tblStationData.[Station Name];
Thanks for any help as I thought SELECT DESTINCT would do this. I have tried all join types.
Bob