thanks Jason... I had copied it across but will not in future!
this is the last question, i hope, for the week as now it does check and show the error message. If you then change the ProductName to be something unique, it doesnt update the database. Have atatched the up to date version of the page