I’m trying to write a query that shows all the container movements. Yet when I run the query “qryFullHistory” I get a duplicate value for container “Off Island”. I’ve tried adding some criteria that says that the DateRequested has to be between the ImportDate and ExportDate but that doesn’t seem to work. There are duplicate entries for container “Off Island” in “tblContainerDetails” as the same container has arrived and left and then returned on another voyage. Yet there is no entry for the second voyage in the tblMEMRContainer.
A brief description of the tables is:
tblMEMR – Movement requests details
tblMEMRContainers – the containers that were moved on the movement request. There can be more than 1 container for each request.
tblContainerDetails – details and dates for the container when it arrived and when it left
There are other tables but these are the 3 that are used in the query.
Your help is greatly appreciated.
A brief description of the tables is:
tblMEMR – Movement requests details
tblMEMRContainers – the containers that were moved on the movement request. There can be more than 1 container for each request.
tblContainerDetails – details and dates for the container when it arrived and when it left
There are other tables but these are the 3 that are used in the query.
Your help is greatly appreciated.