Sorry , sorted it now.

I forgot to put .value at the end of the textbox.

Works fine now ahh well, we all make mistakes

Just glad it works now!