Tables("可用余额").Current("回款_其它老") = DataTables("回款明细").Compute("sum(回款金额)","分公司 = '" & Tables("可用余额").Current("分公司") & "' and 收款方式 <> '承兑' and & filter & and 年份 <> 2013 ")
应该是:
Tables("可用余额").Current("回款_其它老") = DataTables("回款明细").Compute("sum(回款金额)","分公司 = '" & Tables("可用余额").Current("分公司") & "' and 收款方式 <> '承兑' and " & filter & " and 年份 <> 2013 ")
好好看看:
http://www.foxtable.com/help/topics/1284.htm
别着急做系统,这些基本工应该掌握,心急吃不得热豆腐,否则耽误的时间更多。