Hi,

I'm sorry but the code I posted is now working and I'm not sure why it wasn't working before. Thanks heaps for everyone's help!