Hi all, crossforum double-post here in desperation...
I'm trying to put together a small database for tracking and tracing a fleet of shipping containers. One function I need is to query which containers that are currently at one specific location.
The query below helps me to see what units are at a certain location, based on the input of the location name in a form field. However, if the same container have visited the location more than once then it shows up twice (or more).
How can I limit the query to not show container duplicates? Also, I want the most recent dated location-visit to show, but I'm guessing that the ORDER BY-criteria take care of that.
SELECT Tracking.Container, Tracking.Location, Tracking.Arrivaldate, Tracking.Loaded, Tracking.Empty
FROM Tracking
WHERE (((Tracking.Location)=[Forms]![Containerpositioning]![location]))
ORDER BY Tracking.Arrivaldate DESC;
Regards
Marcus