Hi Thank you for the input, that has definately cleared things up

then check if (function is not nothing) to see if we got avalue returned would that be right?

thanks guys

Graham