Here is what 'almost" works :
ds.Tables.Item("ParentTable").Columns.Add("P5Sum", GetType(Decimal), "Sum(Child(theDataRelation).P5)")
One confusing thing is that the first row of the next DataRelation group is included in the sum. Example: apple = 1 apple = 3 apple = 5 sum(apple) = 14 orange = 5 ' this row is included in the sum of apple.
If the DataRelation manages the sum function properly, then how could logic cause this error in the sum? Is this a known bug or a logic problem ADO newbies encounter?
Any suggestions, comments ?? Can someone please clarify this?
tia, Todd |