<>这个问题昨天也好似是这个例子的,已经回复过了</P>
<>SELECT 收支表.收支日期, 账户表.账户名称, Sum(nz([收入金额])) AS 收入金额之总计, Sum(nz([支出金额])) AS 支出金额之总计, Sum([开户金额]+[收入金额]-[支出金额]) AS 余额<BR>FROM 账户表 INNER JOIN 收支表 ON 账户表.账户编码 = 收支表.收支账号<BR>GROUP BY 收支表.收支日期, 账户表.账户名称<BR>HAVING (((收支表.收支日期)=[请输入日期:]));<BR></P>