此主题相关图片如下:微信截图_20210816145903.png
现在有一个订单表,分别有产品、客户、数量、日期列
现在在weui手机端按照产品类型生成一张表,其中数量为该类产品统计出来的总数量 ,
Dim dt As DataTable = cmd.ExecuteReader
With wb.AddTable("","Table1")
Dim qty As Double
.Head.AddRow("No.","产品","数量")
For i As Integer = 0 To dt.DataRows.count - 1
Dim r As DataRow = dt.DataRows(i)
qty = dt.compute("sum(数量)","产品='" & lr("产品") & "'")
.Body.AddRow(r("NO."),这里引用产品,"" & qty & "") ‘请问这里该怎么处理?’
Next
End With
[此贴子已经被作者于2021/8/16 15:10:49编辑过]