amypaulsmom Posted March 18, 2002 Posted March 18, 2002 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.
Vaughan Posted March 19, 2002 Posted March 19, 2002 You are trying to go to the next record in Preview mode.
amypaulsmom Posted March 19, 2002 Author Posted March 19, 2002 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
Vaughan Posted March 19, 2002 Posted March 19, 2002 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.
Recommended Posts
This topic is 8289 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now