Reporting the maximum date within rows with the same keydata
I'd used the last one. It works, so thanks for that.
To run this code for the 500.000 records took exact 58 minutes.
I have to take that into account and don't pushing the button frequently (or do it and take a coffee break).
So, thanks again. I can go on with it.