Hi Ray, sorry for the delay in replying, had to get a few other things sorted out on the site so this had to wait.
I've had another look at the page and changed the key column to the ID column, however I would need to pass the ID from the nested recordset which of course doesn't appear until further down the page, so with the download behavior at the top it doesn't work. How would I get around this? I've attached the updated page.