I have a subform that I am trying to filter one column based on another as in the Select statement below. I am using a continuous form on the subform and I am trying not to show records in one column that are showing in cmbVeh. I just can't get it to work. It may only filter out one of the Vehicle numbers but not all. Can someone give me ideas why this is not working and maybe a better solution. Thanks in advance.
SELECT Vehicle.VehicleID
FROM Vehicles
WHERE (((Vehicle.VehicleID)<>[Forms]![Vehicles]![Vehiclesubform].[Form]![cmbVeh]))
SELECT Vehicle.VehicleID
FROM Vehicles
WHERE (((Vehicle.VehicleID)<>[Forms]![Vehicles]![Vehiclesubform].[Form]![cmbVeh]))