I've sorted out this issue.
This thread now only exists as proof that I am still a massive novice with code writing.
The code that requires replacing was found, as indicated in previous threads, and everything is processing correctly.
I'm very glad that I got no replies and only have to feel guilty that 29 people wasted their time reading my post.
Bookmarks