This has been discussed many times! I use this method:
Go to Record (first)
... do your thing ...
Exit loop if ( Get ( FoundCount ) = Get ( RecordNumber ) // note the last one! )
Go to Record (next)
/* do NOT use the exit-after-last */
While the "error" means nothing, my clients hated to have it in their logs.
Thanks for the reply. Sure, there is an easy work-around. But why does it still throw an error? Filemaker, Inc. should fix this. Your clients hating this in their logs is further evidence.
Not a priority if we have a "fix". And you really cannot Go to Record (next) if you are already on the LAST record.