Not sure what my reasoning behind the 01 was, can just as easily be 1 - making the doc name OP1.xml
Will give that a go now.....
...
Same deal - renamed the existing doc to OP1.xml and the next file becomes OPNaN.xml
I just had a thought, given that I am retrieving the ID and not the filename of the doc, why am I messing with OP?
Rhetorical.
I think I need another coffee.
I need to retreive the ID add 1 to it, then prefix it wil OP and make this the filename. For some reason I have been working as though the ID was prefixed with OP.
Will report back