修改窗体的数据源为一个汇总查询就行了如SELECT C1.姓名, Sum(C1.F1) AS 金额合计FROM (SELECT 表2.姓名 as 姓名1, [数量]*[金额] AS F1FROM 表2) as C1GROUP BY C1.姓名1你第二个图也应该是错的,窗体中有一个组控件就行了
用查询分组汇总,如果要在文本框显示的,可以用dsum合计