I'm trying to create a 128 barcode with the following information and am not getting the correct output. I'm sure there is something incorrect in my code but I can't figure out what it is... Can someone please point me in the right direction?
The field "XPN" dictates the information to be used for the barcode.
Here is the code:
if (Field("XPN") == "70-0024-012")
return Make128Barcode("M00582040", true);
else if (Field("XPN") == "70-0024-014")
return Make128Barcode("M00582050", true);
else if (Field("XPN") == "70-0024-016")
return Make128Barcode("M00582060", true);
else if (Field("XPN") == "70-0024-018")
return Make128Barcode("M00582070", true);
else if (Field("XPN") == "70-0024-020")
return Make128Barcode("M00582080", true);
else if (Field("XPN") == "70-0024-022")
return Make128Barcode("M00582860", true);
else if (Field("XPN") == "70-0024-024")
return Make128Barcode("M00582090", true);
else if (Field("XPN") == "70-0024-028")
return Make128Barcode("M00582100", true);
else
return " ";