>>>Try selecting the alias of the table you just opened just before the ZAP command.
>>>
>>You're responding to the wrong person. :)
>
>
>Not really. Your code does not reselect the initial alias ...
>
I was responding to Mathias who said select the alias *before* the zap command - which my code segment did. Therefore he could not be addressing his comment to me.
You're now trying to claim that his comment referred to something after the zap and in this you are mistaken.
>>>You could also...
>
>
>>>IF NOT USED(lcOutputName)
>>> SELECT 0
>>> USE (m.lcOutputPath) EXCLUSIVE
>>> SET SAFETY OFF
>>> ZAP
>>> SET SAFETY ON
>>>ENDIF
>