saving a record with multiple subforms
Posted: Mon Nov 14, 2016 11:39 pm
I have a form with several subforms, each of which refer to the same product detail table (but with different fields from that table, for ease of viewing and editing). The key id that differentiates each record in the subforms can only be updated, added, and deleted in one of the subforms - the other subforms display it but read-only. Everything works except when I go to save a change I have made to a record in one of the subforms. I get the message: "There is already a record with a Period with a values of 562a5432a2a93fa in subform Add or delete periods on row 1.. (TAB : Details). I get this same message for each row in the subform. Period is the key id field for each row, and the value in the error message is the Period id value for that row. "Add or delete periods" is the title of the subform in which the user can add or delete records - all the other subforms cannot add or delete records, only update them.
I thought I had this working successfully awhile ago, but now I consistently run into this problem. I was sure I could have multiple subforms referring to the same underlying table in a form, but with this problem I am not so sure anymore. Any advice?
I thought I had this working successfully awhile ago, but now I consistently run into this problem. I was sure I could have multiple subforms referring to the same underlying table in a form, but with this problem I am not so sure anymore. Any advice?