>>I removed unneeded dots, though some people like to leave them.
>>
>>Anyway, the code looks fine to me, can you trace it to see, what it's doing? I think you have data problem, not a bug in this little piece of code.
>
>Thanks for the clue. BTW the Shapename field contains a sys(2015) value
Do you have shapes on the form with random names?
If it's not broken, fix it until it is.
My Blog