I have two related business objects. I have some code to add records to both business objects and when I execute this code within a form, the code runs fine and the records are added properly.I needed the ability to share this logic with other programs so I moved my logic to the parent business object class and pass the child business object ByRef. When I execute the code, I get an error creating a new row on the child BO. (System.IndexOutOfRangeException). Index 0 is either negative or above rows count.
It seems to execute the NewRow fine and it actually sets the Fk value correctly on the child record but as soon as I try to assign something to any other field it errors out.
Any Idea's??
Thanks
Tim