以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  动态合成表达式  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=142355)

--  作者:kaituozhe
--  发布时间:2019/10/24 20:25:00
--  动态合成表达式
 msgbox(""""日" & Format(2,"00")""")  合成表达式怎么修改?
        For n As Integer = 1 To 31
        e.DataRow("日" & Format(n,"00")) = DataTables("明细账").Compute("sum(借方金额)","科目编号 = \'" & e.DataRow("科目编号") & "\'and 公司名称= \'" & e.DataRow("公司名称") & "\' and 日期 = \'" & New Date(e.DataRow("年度"),e.DataRow("期间"),n))  & "\'")
        Next

--  作者:kaituozhe
--  发布时间:2019/10/24 20:31:00
--  
解决了