Thanks for the replies.

Its making the error 2 (file not found I think in dll errors) for Renaming a file and for deleting a file. This, to me, suggests that windoze is (for some reason) looking for the file which has just gone although there is no handles for opening it held.

As to the ByVal, byref bit I know what they mean, however it is unclear in MSDN as all their examples and descriptions are for C++ ... and not for vb/vba. Its just that if you put a byref and it should be byval it kills Access. An I was searching for info for vb stuff, which came across a site with declarations etc in vb code, but contradicted MSDN with the sub function and some of the references.

Anyway, as it is actually deleting/renaming but erroring as a missing file, I've ignored the error. My main concern was that this does not impact further on in the program, but the Access as FTP is working fine now.

At least as a single connection download. Not sure I should venture into the multiple connection downloads...

Thanks for the AllApiNet example... Its one I used the first time around when the ftp openinternetfile for downloading etc didn't work, probably due to using the wrong flags.

BTW - long or bolean won't matter. if it fails it will be 0 in either case. It only matters with the handle being returned