1、在查询中应写为:select sum([销售收入])/sum([销售量]) as 平均单价 from 销售表 where format(日期,"yyyymm”)="200903"
2、在控件数据源中应写为:=dsum(“销售收入”,“销售表”,“format(日期,"yyyymm”)=200903”)/dsum(“销售量”,“销售表”,“format(日期,"yyyymm”)=200903”)
3、在VB中应写为:me.平均单价=dsum(“销售收入”,“销售表”,“format(日期,"yyyymm”)=200903”)/dsum(“销售量”,“销售表”,“format(日期,"yyyymm”)=200903”)