There is a StreetNumber field and a StreetName field in the same table. I would like to have the user start typing in either one of the fields, and when they see an existing record in the combo box drop down list, they can select it (this much I can do so far). Then, when they click on the other combo box, it will show all the existing records that also share the same information in the first combo box.
For example, with these records:
--------------------------------------
ID |StreetNumber |StreetName |Category
1 |10 |Main Street |House
2 |20 |Main Street |Apartment
3 |10 |King Street |Store
4 |11 |Queen Street |Factory
-----------------------------------
In the StreetNumber combobox when user types "1", it will show "10" and "11". User clicks on 10. In StreetName, user clicks on combo box drop down arrow, and it shows "Main Street" and "King Street" only. Would also like (but optional) it to work the other way as well; if the user types in "Main Street" first then the StreetNumber should show "10" and "20" in drop down.
Extra: If they then select "Main Street" in the combo box, ID=1 is selected and the Category field automatically populates itself with "House", and it updates ID=1 when saving instead of creating a new one. How can this be accomplished?
This seems like something that's probably been done before, but either I'm not using the correct search terms, or no one used Access for it.
Thanks for your assistance!