How Null Propagates : Null « Data Type « VBA / Excel / Access / Word






How Null Propagates

 
Sub nullDemo()
    Dim varFirstName   As Variant
    Dim varLastName   As Variant
    Dim varFullName   As Variant
    
    varFirstName = "Janine"
    varLastName = Null
    
    varFullName = varFirstName & varLastName
     
    Debug.Print varFullName
End Sub

 








Related examples in the same category

1.Nulls are not equal
2.use IsNull function to check