Thanks, Andrew.
The report is working fine now.
John