Hi mate, thanks for getting back to me, but as i am only new to this application and still getting my head around reporting.
Have no idea how to run your script using the report writer, so am probably missing the point you have raised.
Am not a coder, so is this something that has to be done directly at the database?