>In addition to what the others have told you, you should not release the object reference while you are still in the DS of that object. You should release lnNewDS after you change back to the original DS. Otherwise, this could leave a dangling reference and not really close the DS [shown as UNKNOWN if viewed in the Session form].
>
>
set datasession to (lnDS)
>release lnNewDSYou are probably right regarding the release, I changed the order, however the same errors still occur.
Thanks,
dz
Doru