以下是引用小狐在2008-11-20 0:12:00的发言:
谢谢,请问 如果在表属性
BoforeAddDatarow 中这样设置 为什么出错
if currenttable.current("入库单编号") isnot nothing then
dim a as integer
a = datatables("入库明细").compute("sum(金额)","[入库单编号]='"&e.datarow("入库单编号")&"'")
currenttable.current("金额") = a
end if
该怎么改呢
这样试试:
if e.datarow("入库单编号") IsNot nothing then
e.datarow("金额") = datatables("入库明细").compute("sum(金额)","[入库单编号]= '" & e.datarow("入库单编号") & "'")
end if