>Does anybody know how to control the sequence of execution of the report records (in .frx)?
The answer to this question is that you cannot control or change the sequence. The report writer's standard flow processes through each detail record, firing group headers and footers, page header and footers, and title and summary bands as needed. There's nothing you can do to change it.
I still don't understand how you could have detail lines out of order in the text file because the report writer processes the records as they appear -- either index order if one is set -- or physical order if not. Either way .. it's the same order as you would see on the printed copy.
My only suggestion is that you have something in your code inadvertantly changing things around when you write to the text file.
Sorry I couldn't help more,
Cathy