Results 1 to 3 of 3
  1. #1
    SRB Local is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2013
    Location
    Florida
    Posts
    2

    Checking for the existance of a specific file in a non-access folder


    I scan in documents (as pdfs) to a non-access folder. Each file is given a unique name. I then utilize my Access DB to enter a transaction that contains the pieces of information to form the unique file name in the folder and I want the form to check for the existence of the file in the folder. Not sure how to read the folder.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Something like:

    If Dir("folder/filename path") = "" Then
    MsgBox "File does not exist in the named folder."
    End If
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    SRB Local is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2013
    Location
    Florida
    Posts
    2

    Thumbs up Answer

    Quote Originally Posted by June7 View Post
    Something like:

    If Dir("folder/filename path") = "" Then
    MsgBox "File does not exist in the named folder."
    End If
    This works perfectly. Can't believe I forgot about this function!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Scan File to folder location from access
    By wrbuchanan2 in forum Access
    Replies: 3
    Last Post: 04-26-2013, 10:26 PM
  2. Replies: 21
    Last Post: 08-20-2012, 11:59 PM
  3. Copy files into specific folder
    By Jan22 in forum Access
    Replies: 12
    Last Post: 04-17-2012, 08:27 AM
  4. Button to Open a Specific Folder
    By dnelms in forum Programming
    Replies: 1
    Last Post: 04-08-2011, 10:05 AM
  5. Check for existance of a file
    By jgelpi16 in forum Programming
    Replies: 1
    Last Post: 11-09-2010, 10:06 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums