The fact that you refer to tables suggests that the combo boxes are bound controls. This might raise a normalization issue, if the column to which the second combo box is bound is a determinant of the column to which the first is bound. This point is
overlooked in many of the demonstrations of correlated combo boxes which I've seen.
A simple example would be a table of locations which includes columns for the city and state (or equivalent). As city functionally determines state, such a table would not be normalized to Third Normal Form (3NF) due to the transitive functional dependency
of state on the table's key, leaving the table open to the risk of update anomalies. There is a legitimate exception to this, which I'll refer to later.
In a situation like this, the table should include a column representing only the lowest level of the hierarchy, cities in this case. The state combo box would be unbound. The text box superimposed on it to create a 'hybrid' control, would be bound however,
but not to a column in the 'locations' table. The form would be based on a query which includes the cites and states referenced tables in addition to the 'locations' table. You'll find examples in
ComboDemo.zip in my public databases folder at:
https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
Note that if you are using an earlier version of Access you might find that the colour of some form objects such as buttons shows incorrectly and you will need to amend the form design accordingly.
If you have difficulty opening the link, copy the link (NB, not the link location) and paste it into your browser's address bar.
I said earlier that there can be a legitimate exception which would allow the combo boxes representing each level of a hierarchy to be bound. This is where the keys are multi-column 'natural' keys rather than 'surrogate' numeric keys. My ComboDemo file includes
an alternative model where this is the case. While this model is legitimate, most people, including myself, would be unlikely to use it in this context. In other contexts it is appropriate, however, and you'll find an example in
Relationships.zip in the same OneDrive folder. This uses a simple medical prescriptions database as its example, with multi-column keys being used for all but patients. This makes the correlation of the controls in the interface very much simpler,
avoiding hybrid controls completely.
Another issue with correlated combo boxes is the use of the NotInList event to insert a new row into the referenced table. An example of this can be found in my
DatabaseBasics.zip demo. This includes a contacts form in which there are correlated combo boxes for Country, Region and City. As this is in single form view they are not hybrid controls, but the NotInList event procedures for each illustrates how
new items can be added to the list in each case. The code in each case can be thought of as 'correlated', in the same way as the controls themselves are. The code in each case includes a reference to the control above it in the hierarchy. Note how this
allows the insertion of duplicate city names, Paris, France and Paris, Texas in this case. It does, for the purpose of the demo make the assumption that city names cannot be duplicated within a single region. In reality this is not the case, and a sub-regional
entity type such as counties in the US and districts in the UK would need to be added to the model to differentiate between such duplicated city names.