My access database contains the following tables: Person, Object, and Sub.
Sub is the relationship table between Person and Object. A Object can have at most 1 Person, a Person can have any number of Objects.
I've got a Person form showing the details of a Person and a datasheet subform, showing all assigned Objects of the Person - that is, the composite primary key (two fields) of Object and two additional columns from the Sub table.
So far everything works. I can insert, update and delete Sub assignments from within the Person form. But the subform should also show two columns from the Object table as well. If I simply set the subform datasource to a joined query, I can still insert records but not update existing ones:
The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship.
I've tried using an outer join and subselects then, but I can't get it to work. I've changed the textfields of the Object columns to comboboxes in the design view so I could use a separate query, but I can only enter one bounded column - but I've got a composite primary key.
How can I display those two additional columns without breaking modifications?