>SORRY
>
>Sorry I forgot to say that the files in the attach directory will all have different names
>
>But each day (or each time my code is run) one of them is moved to the attachxls directory with a name of attach.xslx for further processing
lcFileName = SYS(2000,"c:\citisprint\sttach\*.*")
TRY
ERASE ("c:\citisprint\attachxls\attach.xslx")
CATCH
ENDTRY
RENAME ("c:\citisprint\attach\"+lcFileName) TO ("c:\citisprint\attachxls\attach.xslx")
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.