Thanks alot, you both methods have successfully resolved my problem