Buenas,
Cambia la sql así:
Código vb:
Ver originalDim querySelectrE As String = "SELECT IFNULL(sum(montoUSD),0) FROM detalle WHERE fecha_rev is not null "
Dim cmdrE As New MySqlCommand(querySelectrE, cn)
Dim readerrE As MySqlDataReader
readerrE = cmdrE.ExecuteReader()
While readerrE.Read()
montousdreve = readerrE.GetDecimal(0)
End While
readerrE.Close()