Program not working as intended

OK. Thanks for your time I will have a go in a little while.