--
for each s as string in datatables("表B").getvalues("job_id")dim r as row = tables("表A").addnew
r("job_id") = s
r("billing_no") = sdatatables("表B").GetComboListString("billing_no","job_id=\'" & s & "\'")r("金额") = sdatatables("表B").compute("sum(金额)","job_id=\'" & s & "\'")
next
[此贴子已经被作者于2023/6/27 11:14:44编辑过]