Hi Ray, I wasn't able to sort the detail page yet.
In the meantime I moved to my other page. It throws an "There is an error in your SQL syntax" error. I changed Debug to true. Then it displays one of the recordsets with the message:
No data supplied for parameters in prepared statement
Commands out of sync; you can't run this command now