387 c20080517-17 1005 数码光纸5 0.60 21 388 c20080517-17 1006 数码光纸6 0.80 12
销售单号 商品编号 名称 销售价格 数量 ------------------------------------------------------------------------------- yID cPos_num Comm_ID Comm_Name Sale_Price Sale_Quan ------------------------------------------------------------------------------- 383 c20080517-16 1005 数码光纸5 0.60 12 384 c20080517-16 1005 数码光纸5 0.60 15 385 c20080517-16 1006 数码光纸6 0.80 11 386 c20080517-16 1005 数码光纸5 0.60 1 387 c20080517-17 1005 数码光纸5 0.60 10 388 c20080517-17 1006 数码光纸6 0.80 1 389 c20080517-17 1005 数码光纸5 0.60 11 390 c20080517-17 1006 数码光纸6 0.80 11 ================================================================================
Microsoft JET Database Engine 错误 '80040e21' 试图执行的查询中不包含作为合计函数一部分的特定表达式 'yID'
select sum(Sale_Quan) as Salenum,cPos_num,Comm_ID,Comm_Name,Sale_Price from table group by Comm_ID order by yID
select sum(Sale_Quan) as Salenum from [SysPos_cSaleSingle] where cPos_num='"&request("cPosNum")&"' group by Comm_ID
试图执行的查询中不包含作为合计函数一部分的特定表达式 'Comm_name'