>The problem is (I think) the input of the fileId.
>In a grid I see all the open files and there ID
>Then you can put a number in a textbox (the fileId).
>Is this de wrong way.
I really don't know. You'd have to show the actual values. It could be that there are trailing spaces in one of the textboxes that causes this. If so, you'd need to use the ALLTRIM() function to extract the name.
George
Ubi caritas et amor, deus ibi est