Open the report in Design view, right click on the barcode (or its' empty box) and select Edit Field Object from the drop down menu.
Follow the procedure above to replace the formula.
Note that invalid barcodes will not be visible.
More:
Function parameters