G
Guest
I have a combo box on a form to display a list of drivers from the employees
table. Since one person is the primary driver of each truck, I would like it
to default to the driver whom this truck is assigned to(tblEmployees,Truck)
however be able to choose a different driver if needed.
The row source is qryDriver.
The SQL is:
SELECT DISTINCT tblEmployees.EmployeeID, tblEmployees.Truck
FROM tblEmployees INNER JOIN tblTrips ON tblEmployees.EmployeeID =
tblTrips.EmployeeID
WHERE (((tblEmployees.Truck)=[forms]![frmTrips]![TruckID]));
I've tried using DLookup in the Default Value line but it doesn't seem to
accept the criteria portion. I'm sure this is possible but I've been
unsuccessful in accomplishing it so far.
table. Since one person is the primary driver of each truck, I would like it
to default to the driver whom this truck is assigned to(tblEmployees,Truck)
however be able to choose a different driver if needed.
The row source is qryDriver.
The SQL is:
SELECT DISTINCT tblEmployees.EmployeeID, tblEmployees.Truck
FROM tblEmployees INNER JOIN tblTrips ON tblEmployees.EmployeeID =
tblTrips.EmployeeID
WHERE (((tblEmployees.Truck)=[forms]![frmTrips]![TruckID]));
I've tried using DLookup in the Default Value line but it doesn't seem to
accept the criteria portion. I'm sure this is possible but I've been
unsuccessful in accomplishing it so far.