Does each of the bar codes include the page number? You might be able to use something like this to set your 1/0:
If PageNumber = TotalPageCount then 1 else 0
This will work well if you don't have a lot of pages. However, using either "TotalPageCount" or "Page N of M" cause a report to take longer to appear in the viewer. This is because Crystal normally renders one page at a time. However, these functions require Crystal to render every page in the report in order to know how many pages there are.
-Dell