Thanks, I appreciate the advice, but I don't know how to do that. I'll need to do some reading, unless you can provide examples of what you are suggesting.
What does not seem logical to me is that it works fine 80% of the time, and when it bombs out it can be restarted out of the code break...