>>>>>snip
snip>>
>>This is what I found...
>>
>>from window; do prog
>>-----
>>USE templt IN 0 EXCLUSIVE && Working template file
>>COPY TO &t_FIL1 && "SI" + week# file
>>USE && Close templt
>>
>>IF SELECT('SIdates') = 0
>>------
>>
>>The SIdates dbf is USED() until the USE line after COPY. I see I should have SELECTed templt before the USE. I had to look at it for a bit before I saw the error.
>>
>>Thanks guys!!!
>
>Just put
use in Templt
to close Templt table. Also you don't need to use macro in the line bellow. Put copy to (m.t_fil1) instead.
Thanks Nadya,
I'll give that a try too.
Pete
Peter Adams
FoxPro Programmer
Compu-Mail
Heisenberg was probably right...