For lnI=1 To Alines(Abkkm,lcBkkm1,",")
lcStr=lcStr+Iif(Empty(lcStr),"",",")+"Sum("+Abkkm[lnI]+")"
Endfor
MESSAGEBOX(lcStr) &&我在此处加了来下一句代码(Insert Into Tjb Select "合计",&lcStr,0 From Tjb)中的&lcstr
结果是sum(语文)sum(数学)。
Insert Into Tjb Select "合计",&lcStr,0 From Tj &&此处中的 0 是何义 ?是不是对应“小计”的值?
[ 本帖最后由 sylknb 于 2014-5-23 22:29 编辑 ]
lcStr=lcStr+Iif(Empty(lcStr),"",",")+"Sum("+Abkkm[lnI]+")"
Endfor
MESSAGEBOX(lcStr) &&我在此处加了来下一句代码(Insert Into Tjb Select "合计",&lcStr,0 From Tjb)中的&lcstr
结果是sum(语文)sum(数学)。
Insert Into Tjb Select "合计",&lcStr,0 From Tj &&此处中的 0 是何义 ?是不是对应“小计”的值?
[ 本帖最后由 sylknb 于 2014-5-23 22:29 编辑 ]