J
Jared
I have the following query that I wish to return ALL vehicles and then show
all trips applicable to those vehicles for the current date (pulled from a
form). The problem I'm having is that the query returns only the vehicles
that have trips for the day, not ALL vehicles.
SELECT vehicle.vehicle_label, trips.trip_from, trips.trip_to,
trips.pickup_date, trips.drop_date, trips.closed, trips.timeField,
vehicle.SubContractor
FROM vehicle LEFT JOIN trips ON vehicle.vehicle_label = trips.vehicle_fkey
WHERE (((trips.pickup_date)=[Forms]![frmAllocation]![AllocationDateField])
AND ((vehicle.SubContractor)=False) AND ((vehicle.sold)=False) AND
((vehicle.trailer)=False)) OR
(((trips.drop_date)=[Forms]![frmAllocation]![AllocationDateField]))
ORDER BY vehicle.vehicle_label, trips.timeField;
Thankyou in advance.
all trips applicable to those vehicles for the current date (pulled from a
form). The problem I'm having is that the query returns only the vehicles
that have trips for the day, not ALL vehicles.
SELECT vehicle.vehicle_label, trips.trip_from, trips.trip_to,
trips.pickup_date, trips.drop_date, trips.closed, trips.timeField,
vehicle.SubContractor
FROM vehicle LEFT JOIN trips ON vehicle.vehicle_label = trips.vehicle_fkey
WHERE (((trips.pickup_date)=[Forms]![frmAllocation]![AllocationDateField])
AND ((vehicle.SubContractor)=False) AND ((vehicle.sold)=False) AND
((vehicle.trailer)=False)) OR
(((trips.drop_date)=[Forms]![frmAllocation]![AllocationDateField]))
ORDER BY vehicle.vehicle_label, trips.timeField;
Thankyou in advance.