The bar code works when the form is initially opened. We have tried form:ready and layout:ready, neither works when the pages increase or decrease. Please provide assistance. Thank you in advance.
Try moving the code to the calculate event of the bar code object, then it will fire whenever any of the depend references (like the page number) changes.