IsVoid

Public Function IsVoid(ByVal Expression As Variant) As Void

Returns True if the specified variable/expression is of type Void. A Void is returned if a ?-expression is used on an object that is Nothing

Public Function Test(pRecordset As Recordset)
   Dim lName As Variant = pRecordset("Name")?.Value
   If IsVoid(lName) Then
       SendDebug "The field Name was not found in the given Recordset"
   End If
End Function

See also: