Hi Michael and ccn,
Thanks to you both for your prompt responses.
Michael, just so you know, I tried your solution, and while my script didn't die or anything, nothing got added to the database unfortunately. I had previously tried a solution very similar to this, but also without success.
ccn's code did work for me however, so I was wondering if the binding is necessary??
Thanks,
Martymart