ste4en
Technical User
- Aug 1, 2001
- 69
I am trying to use a Case statement however the red part as below is being ignored. Can anyone point out my error. Thanks; Steve
Code:
Select Case (myActivityCode)
Case 201900
CostCodeN = "201900"
Case 201901
CostCodeN = "201901"
[COLOR=red]
Select Case Left(myActivityCode, 3)
Case "950"
CostCodeN = "950000"
Case "955"
CostCodeN = "950000"
Case "959"
CostCodeN = "959000"
[/color]
End Select
Case Else
CostCodeN = Left(myActivityCode, 1) & "00000"
End Select
End Function