codice:
If IsDBNull(valore) then...

'o ancora meglio

If valore is DbNull.Value Then
HTH