Asi empiezo mi código:
Código:
For Each row In ds.Tables(0).Rows
Try
'If previousConnectionState = ConnectionState.Closed Then
' conn.Open()
'End If
If row(3) = " " Then
row(3) = Nothing
End If
If row(4) = 0.0 Or Nothing Then
row(4) = Nothing
End If
If row(5) = 0.0 Or Nothing Then
row(5) = Nothing
End If
If row(6) = 0.0 Or Nothing Then
row(6) = Nothing
End If
y lo que quiero esque se guarde null si tiene vacio o si tiene 0.0 pero me marca el siguiente error
El operador '=' no está definido para tipo 'DBNull' ni para cadena " ".
y no se porque sea
Ayuda!!!!!





