DataTable加载中用“Year(DocTm) = 2018”会有错误? Post By:2018/8/3 19:41:00 [只看该作者]
根据示例:例如,用SQLCompute统计2013年的销售数量: DimValAsInteger Val = DataTables("订单").SQLCompute("Sum(数量)", "Year(日期) = 2013")
我的代码是:Dim cmd As New SQLCommand cmd.Conn ecti cmd.CommandText = "SEL ECT WrtEnd From {PrjFrm} Where DtNam = '"& wr("CurDt") &"' And YM = '"& ny &"'" Dim jz As Boolean = cmd.ExecuteScalar()