Steve-vfp9user
Programmer
Hello
I have a form with two tables, the child being ORDERS that is linked by ChildOrder=urnorder and RelationalExpr=urnorder. Linked order item have a unique number (example 550) in the urnorder N(10) field. This works as expected.
I did find this link: but I've been able to adapt it.
I am aware of COUNT TO and also tried SCAN...ENDSCAN adding up the totals but as there 10's of thousands of linked orders this is taking some considerable time. I'm also aware that with reports you just change the field on the report to sum.
thisform.text1.value doesn't give any information about how to store totals from table in this scenario.
My question is, how can I sum total in a text field on a form from linked child table records from a field called TOTAL N(8,3)?
Any pointers would be appreciated.
Thank you
Steve Williams
I have a form with two tables, the child being ORDERS that is linked by ChildOrder=urnorder and RelationalExpr=urnorder. Linked order item have a unique number (example 550) in the urnorder N(10) field. This works as expected.
I did find this link: but I've been able to adapt it.
I am aware of COUNT TO and also tried SCAN...ENDSCAN adding up the totals but as there 10's of thousands of linked orders this is taking some considerable time. I'm also aware that with reports you just change the field on the report to sum.
thisform.text1.value doesn't give any information about how to store totals from table in this scenario.
My question is, how can I sum total in a text field on a form from linked child table records from a field called TOTAL N(8,3)?
Any pointers would be appreciated.
Thank you
Steve Williams