Thanks Jamie,
I was able to get the formula to work following your example. But I'm still getting the same UFL error message when I try to load the report through the Crystal Reports Windows Form Viewer. Inside of Crystal Reports 2013, in the Preview tab the barcode is generating just fine.