Originariamente inviato da silvia11/12/80
salve a tutti ho questo errore che non riesco proprio a capire questo č il codice

codice:
        connessione.Open() 
       SQl = "SELECT sum(TotFattura) FROM Fatture"
        Dim rea As OleDbDataReader
        Dim cmd As New OleDbCommand(SQl, connessione)
        Dim tot
        rea = cmd.ExecuteReader
        Do While rea.Read
            tot = rea.GetInt32(0)
        Loop
        rea.Close()
        connessione.Close()
        Txt_TotGen.Text = SQl
e questo č l'errore che mi spara

"Additional information: The data value could not be converted for reasons other than sign mismatch or data overflow. For example, the data was corrupted in the data store but the row was still retrievable."

vi prego aiutatemi
prova con iif(isdbnull(rea("nomecampo")),0,rea("nomecampo"))
io faccio sempre cosi