select A.名称,sum(nz(数量,0)) as 汇总数量
from
(SELECT 表1.名称,表1.数量
FROM 表1
union all
select 表2.名称,表2.数量
from 表2) as A
group by A.名称
已经在ACCESS2003里面测试通过!