I have two tables related by a one to many relationship. Actually its the classic Orders and Accessories (a.k.a Ordered Items details) tables.
I want to add an Accessories row. I have a method to do it but I don't know how to equate oRow to my current dataset OrderDataSet1. In the IDE it says oRow should be defined 'parentOrdersRowbyOrdersAccessories as Orderform.OrderDataSet.AccessoriesRow'. What is that? I'm assuming that all I need to do is set oRow equal to the current accessories row or orders row. (the second statement is wrong, but what should it be?)
Dim oRow As OrderForm.OrderDataSet.OrdersRow
oRow = Me.BindingContext(OrderDataSet1, "Orders").Current
Me.OrderDataSet1.Accessories.AddAccessoriesRow(oRow, "ProductA", "3", "33.44")