If you have FileMaker Advanced, enable the script debugger and run your script so that you can step through your script and spot where and why it fails.
Thanks for your answer, philmfdjunk. I've already tried this, and no problem result. It just goes until the end of the inner loop and instead of perform the loop above, it exit.
Send the REAL script.
Then use the data viewer and what you see on the layout to determine why an exit loop If step is evaluating as true When it should not.
That means watching both found set and current record as you step thru your script.
If you still can't figure it out, please post either a screen shot of your script or copy paste it as text from a Database Design Report.