In my form I have Make & Model combo boxes. What I want to have happen is when a user selects a make (i.e. Honda or Yamaha), the model combo box will list only models associated with the Make selected. I have built a table called Make_Model that lists all the combinations of makes and models. I then have a query built that returns the models listed in my Make_Model database only if the Make Combo box matches the Make row in the Make_Model database:
SELECT MAKE_MODEL.MODEL
FROM MAKE_MODEL INNER JOIN TCTRI_MEMBERS ON MAKE_MODEL.MAKE = TCTRI_MEMBERS.PRIMARY_ATV_MAKE
ORDER BY MAKE_MODEL.MODEL;
When I have only one record in my database with the Make row populated, the query correctly returns the appropriate model. When I update the second record's Make, the query matches the models for each Make row (2) stored in my database. I want the query to only run against the Make row for which the form is updating. So If my form is updating the 2nd row in my database, the query should only return a match for the Make in the 2nd row. Instead, while I'm updating the 2nd row, the query runs against the value stored in all rows of the database. How can I fix this ?
SELECT MAKE_MODEL.MODEL
FROM MAKE_MODEL INNER JOIN TCTRI_MEMBERS ON MAKE_MODEL.MAKE = TCTRI_MEMBERS.PRIMARY_ATV_MAKE
ORDER BY MAKE_MODEL.MODEL;
When I have only one record in my database with the Make row populated, the query correctly returns the appropriate model. When I update the second record's Make, the query matches the models for each Make row (2) stored in my database. I want the query to only run against the Make row for which the form is updating. So If my form is updating the 2nd row in my database, the query should only return a match for the Make in the 2nd row. Instead, while I'm updating the 2nd row, the query runs against the value stored in all rows of the database. How can I fix this ?