How to check for NULL in VB.NET

You cannot directly check for NULL in VB.NET or System.DBNull but there is a handy function which will do the job for you

it is IsDBNull

e.g.

         Dim isThisANullField as Boolean = false
         Dim FieldToCheck as Object = System.DBNull

         isThisANullField = IsDBNull(FieldToCheck)