I have a chain of 3 tables with 1-M relationships where only the most immediate foreign key is carried forward, as follows:
Table1: Table1PK and fields
Table2: Table2PK, Table1FK and fields
Table3: Table3PK, Table2FK and fields
Table4: Table4PK, Table3FK and fields.
So if I know the values of Table4PK and Table3FK, I can find Table2FK and Table1FK by tracing upward. So far, so good.
I am trying to make the form for Table4 more friendly by offering users the option to start drilling down from comboTable1PK, whose value filters the recordsource for comboTable2PK and so on.
Only Table4 records are bound (for updates). For new records, this seems to work fine. However when scrolling through the current records, I want comboTable2PK and comboTable1PK to populate based on the value of comboTable3PK.
How can I implement bi-directional filters on the same three comboboxes:
1. Filter the recordsource of the child combobox when the parent combo value changes in AddNew or Edit modes.
2. Set the parent combo value when the child combo value changes in Normal mode.
N.B: I am not using the AfterUpdate or Changed events to filter the recordsources, simply set the filter in the query.