A family of Microsoft relational database management systems designed for ease of use.
Hi @Gary L Alford,
Based on your information, if I don't misunderstand anything about your situation, the problem is likely that the sub-subform is linked to the wrong parent key.
Based on your screenshot, your first sub-form control includes:
- Main form: frmInvoices
- Sub-form control: frmInvoiceServices
- Link Master Fields: InvoiceID
- Link Child Fields: InvoiceID
It's correct for the first level that one invoice can have many invoice service/line-item records. However, for the sub sub-form, I think the departmental breakdown should be linked to the current line-item record in the middle sub-form, not be linked only by InvoiceID. Otherwise, when you move to a new line item under the same invoice, Access still sees the same InvoiceID, so the old department breakdown records still appear. Then if you edit those rows, you are editing the previous line item’s breakdown, which explains why the old details get overwritten.
Hope my observation and sharing may be helpful for your concern. You can try editing the parent key to see if it works. If not, we can work together to figure out a solution.
If you have any questions or need any further clarification, please leave a comment here and I will be happy to continue to help you.
Thank you for your patience and understanding. I'm looking forward to your reply.
If the answer is helpful, please click "Accept Answer" and kindly upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread