你这种,应该用分组报表。
http://www.foxtable.com/webhelp/scr/1542.htm
http://www.foxtable.com/webhelp/scr/1806.htm