Using Access 97
Code that works is as follows:
Function Category(arg As String) As String
Select Case arg
Case Is = "BNK"
Category = "A"
Case Is = "IND"
Category = "C"
End Select
End Function
Code that does not work is as follows:
Function Category(arg As String) As String
Select Case arg
Case Is = BNK, EMP, LFP, RTE, SAL, SLE, SUS
Category = "A"
Case Is = IND, PAL, PPP, RTL, RTN, SMB
Category = "C"
End Select
End Function
This is the latest version of the code that does not work. The arg is a type. I am wanting to return a Category value based on multiple types. Can I use the Select Case to do this?
Thanks for your input
/uh
Code that works is as follows:
Function Category(arg As String) As String
Select Case arg
Case Is = "BNK"
Category = "A"
Case Is = "IND"
Category = "C"
End Select
End Function
Code that does not work is as follows:
Function Category(arg As String) As String
Select Case arg
Case Is = BNK, EMP, LFP, RTE, SAL, SLE, SUS
Category = "A"
Case Is = IND, PAL, PPP, RTL, RTN, SMB
Category = "C"
End Select
End Function
This is the latest version of the code that does not work. The arg is a type. I am wanting to return a Category value based on multiple types. Can I use the Select Case to do this?
Thanks for your input
/uh