select partno, sum(qty) as sum_qty from child group by partno into cursor curSum index on partno tag partno && First time it's allowed select Parent set relation to partno into curSum replace Parent.Qty with curSum.Sum_Qty for found('curSum')Unfortunately, it could not be done through update command, because VFP doesn't support this type of Update.