The answer was to not use the CASE statement at all.. It looked like it was failing somehow internally. So I moved to:
If TCX = 0 then TracID1 = " "
If TCX < 27 then TracID1 = TCX+64
If TCX >=27 then TracID1 = TCX+21
If TCX = 37 then TracID1 = ":"
If TCX = 38 then TracID1 = "."
if TCX > 38 then TracID1 = "$"
I think the code is smaller, and best of all it works.
Bookmarks