I'm trying to write a script that opens a record, looks at the first field, performs an action and then moves onto the next field and performs an action until there are no more fields. Then, it moves onto the next record and does the same thing. The problem is that I can't find a way to start at the first field and end at the last. I can see start at first record and end at last, but not the equivalent for fields. Any help, please?

If no field is selected, Go To Next Field will go to the first field. Set a variable to store the first field name with Get(ActiveFieldName). Start a Loop, Exit Loop If [$CurrentFieldName = $StartingFieldName], do your processing, Go To Next Field, set a variable to the current field name with Get(ActiveFieldName), End Loop.

So, you don't really need to know what the last field is - you just need to stop the loop at the moment you hit the first field name again.