Function CC1(BP As short, CC As short) As String
If BP = 1 Then
cc = "B*"
Else
cc = "C*"
End If
End Function
I tried to call the above function in access query, but if says compile error
Access query has this function in below format
n: CC1([BP],[CC])