E se controllassi direttamente lato server se il valore è null o meno inserendo la clausola ISNULL (se il db è su sqlserver) oppure NZ (Null to Zero) (se il db è Access)?
Ad esempio
Sql Server
Select Isnull(t1.totale,0) as Totale from T1
Access
Select NZ(t1.totale, 0) as Totale From T1