Not looping through records
I have developed a script for producing multiple copies of labels for new products in inventory.
After all updates are made, I have a report button that prints all new labels, however, for some reason it is not looping correctly. It will print all the repeated labels for the first record, but it is not looping back to the next record to print repeated labels for remaining records. Here is the script, and I have highlighted where I have for it to loop back to the next record.