round(SumFor("已记账凭证","金额","科目名称","=",[科目名称],"明细科目","=",[明细科目],"借贷","=",-1,"日期",">=",[%开始日期%],"日期","<=",[%结束日期%])+SumFor("记账凭证","金额","科目名称","=",[科目名称],"明细科目","=",[明细科目],"借贷","=",-1,"日期","日期",">=",[%开始日期%],"日期","<=",[%结束日期%]),2)
==================================================
以上公式中:第二个SumFor求和式,去掉一个多余“日期”。这个公式应该为当前表“金额”列的“刷新公式”吧?如果当前表存在“科目名称”、“明细科目”二列的话,应该是可以的!