In a few itterations we can have a working code. :)
>Yes that is better...one less line of code! I think you have to specify the database, or it will create a free table.
>
>>What about
Rename mytable.dbf to oldTable.dbf
>>Use oldTable
>>COPY TO mytable <b>database myDBC</b>
USE
ERASE oldTable.dbf
>>
--sb--