Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP via VBA works except for the end of the file being downloaded gets cut off

Status
Not open for further replies.

Mistux-M

Programmer
Jul 30, 2020
1
US
So I am using the code for FTP from this thread (now closed) which works perfect, except that on downloads the last few characters or lines gets cut off, it is not consistent.

I'm using the latest MS Access (Office 365 or whatever they call it now) and Windows 10, 64 bit.

Not sure what to make of that, and just looking for suggestions as I have racked my brain out going through the code to see what might be causing it. Anyone have experience with that code and/or can suggest different code to use. (I have looked but seems like FTP code examples died off a while ago.)

Anyway, thanks.

Mitch
 
260 is the limit for ANSI version. You can try FtpFindFirstFileW function instead. For similar FindFirstFileW: "In the ANSI version of this function, the name is limited to MAX_PATH characters. To extend this limit to 32,767 wide characters, call the Unicode version of the function and prepend "\\?\" to the path." (
combo
 
>using the code for FTP

Which bit - mine or 1DMFs?

And code for getting the list, or code for GETting a file (or files)?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top