I am having problem updating a grand child record when saving the parent. I attached a small VB sample project using the SF Sample tables Customers, Orders and OrderItems.
I created the main form frmCustomers which is used to add Customer, then the orders are added via a ChildFormDialog frmOrders and the OrderItems are added programmatically, and here is the problem, when clicking the Save button in frmCustomers, the Customers and Orders records are saved and the or_Cust_PK is updated properly, but the record for OrderItems is not saved and I believe the problem is that the field orit_or_pk is not being updated with its parent field value.
To test do the following:
Notice that all I am trying to do here is to implement the logic of saving all BOs in at a single point, in this case the frmCustomers form's Save button.
Thanks for taking the time to review the sample project. I will review your post in detail and make the changes in the sample project before changing my project.
I have not used the FillMultipleDataTable, and guess it is now time to start using it. In my project I use a Browse Dialog in the main form, but due to time to create the sample project I when the easiest way by just selecting TOP 100. From my quick review, I noticed the main cause was the filtering of the order item table, which after you explained it, makes perfect sense.