D
Douglas J. Steele
You've declared the parameter of the function to be a string. Strings cannot
be Null: the only data type that can have a value of Null is a Variant.
That's what's causing the error when you pass Null to the function.
Change it to
Public Function EmployeeNameFormat2(EmployeeNum As Variant) As String
be Null: the only data type that can have a value of Null is a Variant.
That's what's causing the error when you pass Null to the function.
Change it to
Public Function EmployeeNameFormat2(EmployeeNum As Variant) As String