Public Function EmptyToValue( _ ByVal vValue As Variant _ , ByVal vReplace As Variant _ ) As Variant
Assuming Dim varEmpty As Variant for example EmptyToValue(varEmpty, 0) = 0 EmptyToValue(EmptyValue, "N/A") = "N/A" IsNull(EmptyToValue(Null, 0)) = True EmptyToValue("Word", "N/A") = "Word" EmptyToValue(123456, 12) = 123456See also:
EmptyToBlank Function EmptyToNull Function EmptyValue PropertyvValue: The value which is to be returned as-is unless it is empty, in which case vReplace will be returned.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.