R
Rick Dunmire
Hello all,
I have built a make table query to select information based on a field with
a month in it and the parameter is based on the value from two combo boxes
and the result is feed into another table which is built from the query.
SELECT Vehicle.registrant_name, Customer.street_address_1,
Customer.street_address_2, Customer.city, Customer.state, Customer.zip_code,
Vehicle.vehicle_year, Vehicle.vehicle_make, Vehicle.vehicle_model,
Vehicle.license_plate_expiration_month, Inspection.inspection_date INTO
INSPReminder
FROM (Customer INNER JOIN Vehicle ON Customer.pk_customer =
Vehicle.fk_customer) LEFT JOIN Inspection ON Vehicle.pk_vehicle =
Inspection.fk_vehicle
WHERE (((Vehicle.license_plate_expiration_month) Between [combo1].[value]
And [combo2].[value]))
ORDER BY Vehicle.license_plate_expiration_month;
What is happening here, is I am selecting info from the query where the
license plate expiration month is between combo1.value and combo2.value.
Lets say the values are combo1.value=10 and combo2.value=12. I would get a
result back from the query where the license plate expiration months are
either 10, 11 or 12 (October, November or December). No problem here. but if
I select combo values from 11 to 01 (November to January), I get everything
from 01 to 11(January to November). That is the problem.
Can this be corrected somehow?
Rick
I have built a make table query to select information based on a field with
a month in it and the parameter is based on the value from two combo boxes
and the result is feed into another table which is built from the query.
SELECT Vehicle.registrant_name, Customer.street_address_1,
Customer.street_address_2, Customer.city, Customer.state, Customer.zip_code,
Vehicle.vehicle_year, Vehicle.vehicle_make, Vehicle.vehicle_model,
Vehicle.license_plate_expiration_month, Inspection.inspection_date INTO
INSPReminder
FROM (Customer INNER JOIN Vehicle ON Customer.pk_customer =
Vehicle.fk_customer) LEFT JOIN Inspection ON Vehicle.pk_vehicle =
Inspection.fk_vehicle
WHERE (((Vehicle.license_plate_expiration_month) Between [combo1].[value]
And [combo2].[value]))
ORDER BY Vehicle.license_plate_expiration_month;
What is happening here, is I am selecting info from the query where the
license plate expiration month is between combo1.value and combo2.value.
Lets say the values are combo1.value=10 and combo2.value=12. I would get a
result back from the query where the license plate expiration months are
either 10, 11 or 12 (October, November or December). No problem here. but if
I select combo values from 11 to 01 (November to January), I get everything
from 01 to 11(January to November). That is the problem.
Can this be corrected somehow?
Rick