Good morning, I have the following little Function that gives #Error when there's nothing in the particular field that I'm interrogating.
I've tried adding
But still get #Error
As far as I know, this is a single character field that is populated from a drop-down list of single charaters.
Any suggestion please?
Many thanks,
D€$
Code:
Public Function fIntent(strInput As String) As String
Select Case strInput
Case "C"
fIntent = "Curative"
Case "D"
fIntent = "Diagnostic"
Case "9"
fIntent = "Not known"
Case "P"
fIntent = "Palliative"
Case "S"
fIntent = "Staging"
Case Else
fIntent = ""
End Select
End Function
I've tried adding
Code:
Case ""
fIntent = "Not Completed"
But still get #Error
As far as I know, this is a single character field that is populated from a drop-down list of single charaters.
Any suggestion please?
Many thanks,
D€$