>>COPY TO (m.lcPartName) XLS FIELDS &fld_list NEXT 65534
>>What could cause this?
>>BTW She tries to save the file on the Desktop
Weird error.
1) UAC, Virus scanner or anything else checking for desktop changes?
2) What are the values of lcpartname and fld_list?
3) Left field: In Windows 10 there is a definite issue that sometimes creating, copying or deleting files will fail first time or even second time, but succeed immediately after. I suspect the cause is to do with clever caching or similar. This is one of the VFPA fixes- when creating copying or deleting, it will attempt 5 times before admitting defeat. Have not checked whether this includes copy to.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us."
-- Shakespeare: Coriolanus, Act 1, scene 1