Hola amigos , me surgio una duda, tengo este codigo y si no hay importes para sumar me pone el txtcobranzas.text =vacio , como puedo hacer para ponerle "0,00" ?
llaveCobranza = "select sum(importe) as suma from tbdetallegastos where (MONTH(fecha)='" & Month(DTPicker1.Value) & "' and YEAR(fecha)='" & Year(DTPicker1.Value) & "') and tipocomprobante='RC'"
DsDetalleGastos.RecordSource = llaveCobranza
DsDetalleGastos.Refresh
txtcobranzas.text = FormatNumber(DsDetalleGastos.Recordset!suma, 2)
gracias !!!