ChrisLeicester
Member
- Local time
- Today, 19:42
- Joined
- Feb 14, 2025
- Messages
- 50
Hi All.
I am having an issue with a subform on my purchase orders side. Funnily I use the same format on my sales side and that works, but on the purchases side I get the following,
Cannot add record (s), join key of prodordertb is not in recordset.
The main form data come from a query linking a purchase orders record and the supplier table. The purchase order table is in the error ProdOrderTB.
The subform is a continuous form based on another query, StockOrdersTB with links to the product table for the product name, size and also linked to weight unit table for weight description.
I have a vba that opens the main form in add record mode and then is meant to set the supplier and the date.
I don't understand the error as the.main form is not linked to any other form where it wants the primary key, and the subforms are linked by master child correctly
Also, between the main and sub, the master key field is on the form and the child key field is on the subform.
Any ideas
Thanks
I am having an issue with a subform on my purchase orders side. Funnily I use the same format on my sales side and that works, but on the purchases side I get the following,
Cannot add record (s), join key of prodordertb is not in recordset.
The main form data come from a query linking a purchase orders record and the supplier table. The purchase order table is in the error ProdOrderTB.
The subform is a continuous form based on another query, StockOrdersTB with links to the product table for the product name, size and also linked to weight unit table for weight description.
I have a vba that opens the main form in add record mode and then is meant to set the supplier and the date.
I don't understand the error as the.main form is not linked to any other form where it wants the primary key, and the subforms are linked by master child correctly
Also, between the main and sub, the master key field is on the form and the child key field is on the subform.
Any ideas
Thanks