Hi, I'm working to do this exact thing, and glad to see I've ended up in the same place!
Just wondering one thing though, how did you write the function ExportRecord? I can't seem to find a simple solution.
... *time passes*
well here's my solution anyway, hope it helps someone!
function...