Access 2000
I am trying to add "ALL" to a combobox that is filtered by DLookup in
a table of defaults. I need the 3rd field to have the same value as
the filter.
This is what I have so far.
I'm getting a "missing operator" error in UNION Select "*", "ALL"
,"DLookUp("CountyFil","tblDefaults")" FROM QVehicleNumber; in the
DLookup part of the statement.
SELECT QVehicleNumber.VehicleNumberID,
QVehicleNumber.VehicleNumberDesc, QVehicleNumber.CountyFilter
FROM QVehicleNumber
WHERE (((QVehicleNumber.CountyFilter)=DLookUp("CountyFil ","tblDefaults")))
ORDER BY QVehicleNumber.VehicleNumberDesc UNION Select "*", "ALL"
,"DLookUp("CountyFil","tblDefaults")" FROM QVehicleNumber;
TIA
Dale