Oliver,
'NOTE: If necessary, do any processing here that would apply to both success and failure cases
I specifically want to escape from the whole sub routine if it does not meet the first condition, which is the object of these forks.
I think it has to do with using a Return in the first part, but not in the second part.
mc&3,
No I do not have any.
I am just verifying a very simple condition, contained in the first line of the code I have given.
I have solved it by doing two if statements, one of the condition being true and the other of the condition being false, but that should not be necessary.
This is not the first time I have found this condition of an error whilst the error was somewhere else.
I realise that this is not easy to solve from inspecting the the routine in isolation.
However, thank you all for your appreciated advice.
PK