March 18, 200223 yr Good afternoon - I have a script that is running great - except that it never stops looping. I have a pause step in it - so I can stop it for testing, but I need your advice. Here is an outline of the script - Enter Browse goto Layout (List of Invoices) Preform SubScript (finds overdue invoices - in current db) goto First Record Loop Copy (Invoice #) Preform Subscript (creates finance charge - in line items db) goto Layout (Print Invoice) Enter Preview (pause) Page Setup Print Next Record (exit after last) End Loop Exit Script It all works great - except that it is looping over and over again. I only have one invoice it should find - it finds that and gives it finance charges over and over again. Why isn't it exiting after last - something to do with just one record found? Thanks for your advice.
March 19, 200223 yr Author Thank you - That seemed to have taken care of my problem. I was just able to delete the Preview mode step. Why can you not have the Preview Mode inside your loop? Thanks again
March 19, 200223 yr When in Preview mode, the Go to Record step changes pages -- just like PgUp or PgDn. You could leave the Preview mode step in: just remember to change back into Browse mode when it's required.
Create an account or sign in to comment