1、有空值的数据相加.在SQL SERVER2000 中用ISNULL(字段1,0) 可以解决,在Access中如何解决
2、有Union 在Access中的操作,它会出现一样的两条。哪位大哥帮我改改Select A.KMBM,A.FKM,A.XH+A.KMMC as KMMC,A.KMDW,(Select  isnull(Sum(B.SRXTSR),0)+isnull(sum(B.SRJK),0)+isnull(sum(SRJFBK),0) as SR From T_SZMXZ B  Where B.KMBM like A.KMBM+'%' And B.XMBH =:XMBH1 And (B.RQ >=:RQ1 And B.RQ <= :RQ2)) as  SR,null as ZC,null as YSKS,null as ZJYE From T_KJKMFL A Where A.KMBM >='01' And A.KMBM <'02'
union Select  A.KMBM,A.FKM,A.XH+A.KMMC as KMMC,A.KMDW,(Select  isnull(Sum(B.SRXTSR),0)+isnull(sum(B.SRJK),0)+isnull(sum(SRJFBK),0) as SR From T_SZMXZ B  Where B.XMBH =:XMBH2 And (B.RQ >=:RQ3 And B.RQ <= :RQ4)) as SR,(Select Sum(C.ZCZC) as ZC From T_SZMXZ C Where C.XMBH =:XMBH3 And  (C.RQ >=:RQ5 And C.RQ <= :RQ6)) as ZC,(Select sum(D.ZCYSKS) as YSZK From T_SZMXZ D Where D.XMBH =:XMBH4 And  (D.RQ >=:RQ7 And D.RQ <= :RQ8)) as YSKS,(Select (isnull(Sum(E.SRXTSR),0)+isnull(sum(E.SRJK),0)+isnull(sum(E.SRJFBK),0))-(isnull(Sum(E.ZCZC), 0)+isnull(sum(E.ZCYSKS),0)) as ZJYE From T_SZMXZ E Where E.XMBH =:XMBH5 And (E.RQ >=:RQ9 And  E.RQ <= :RQ10)) as ZJYE From T_KJKMFL A Where A.KMBM ='02'