• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 494
  • Last Modified:

Access VBA ftp

I have an Access application that I use to upload files to my remote server it works as a select the file one click operation. I am using calls to Winnet.dll api.

But now I want to be able to check if the file exists just to make sure the file got there and icing on the cake would be file size also.
1 Solution
I think you just need to utilize FileLen() and Dir() to do these two things.


I don't have anything written for File Size but I made a simple little function to return just True/False using Dir():

Public Function fcnFileExists(inFileToTest As String) As Boolean
    'This function will test to see if the passed in file exists.
    'It will return True if the file exists and False if not.
   'Check for file with Dir() and pass back result
   fcnFileExists = (Dir(inFileToTest) <> "")
End Function

Open in new window

Boyd (HiTechCoach) Trimmell, Microsoft Access MVPCommented:
I have an example that may help:

FTP Client functions
IdaracAuthor Commented:
Worked great
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now