This did work to make the screen pause, but it does not stop displaying information when the number of records has been displayed. I tried changing the line
and it does not stop at 400, but starts again at 1. I know have an endless loop, but this may be in part because of an error on my part. My calculations are still not looping as they should so the balance never reaches 0.00 which is where it should stop.
The first line of information is correct, but it does not recalculate with the new information as it should.
Anyway thanks for your help, it is much appreciated.