I have a query that is pulling data from four different tables. For some reason it is returning multiple rows for the same records. Here is my SQL Statement
I have an autonumber field included, but I cannot for the life of me figure out how to limit the records returned. Could someone help out please.
Thanks, Ken
Code:
SELECT Qry_ExportSQL.ID, AgentSortCode.CBLAgentNumber, AgentSortCode.AgentName, Qry_ExportSQL.[Date/Time], Qry_ExportSQL.Material, matcost.Cost, Qry_ExportSQL.[Merchant Number]
FROM matcost INNER JOIN (EOMVisaMC INNER JOIN (Qry_ExportSQL INNER JOIN AgentSortCode ON Qry_ExportSQL.ID = AgentSortCode.ID) ON EOMVisaMC.Sort = AgentSortCode.SortCode) ON matcost.Matcode = Qry_ExportSQL.Material;
I have an autonumber field included, but I cannot for the life of me figure out how to limit the records returned. Could someone help out please.
Thanks, Ken